Menu does not return to selected item

Bug #281245 reported by Jamie Bennett
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Fix Released
Medium
Joshua Scotton

Bug Description

From the main menu, when selecting for instance 'Music', pressing the backspace key to return to the main menu results in the currently selected item defaulting back to 'Video' every time.

Menu needs to remember where it was and return to that position. I'm sure this worked on earlier versions.

Related branches

Revision history for this message
Matt Layman (mblayman) wrote :

I've seen this too. However, I disagree about this working earlier. I don't think that the ScrollMenu widget has ever had the concept of memory. I would think that the ScreenHistory would ensure that position is preserved, but maybe that's not the case.

Changed in entertainer:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Joshua Scotton (joshuascotton) wrote :

In line 549 of user_interface, which is part of the handling code for backspace, the update() method of the screen is called.
For main_screen.py this is:

        self.group.remove(self.menu)
        self.create_main_menu()

Hence all sense of position is lost.
I'm going to take a look at making this have some "memory"... ;)

Changed in entertainer:
assignee: nobody → joshuascotton
Changed in entertainer:
status: Triaged → Fix Committed
Paul Hummer (rockstar)
Changed in entertainer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.