mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
*neutrino user_menu: fix remembering last selected items
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1530 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -439,6 +439,7 @@ public:
|
||||
};
|
||||
|
||||
// USERMENU
|
||||
static int selected[SNeutrinoSettings::BUTTON_MAX] = {-1, -1, -1, -1};
|
||||
bool CNeutrinoApp::showUserMenu(int button)
|
||||
{
|
||||
if (button < 0 || button >= SNeutrinoSettings::BUTTON_MAX)
|
||||
@@ -452,7 +453,6 @@ bool CNeutrinoApp::showUserMenu(int button)
|
||||
|
||||
int menu_items = 0;
|
||||
int menu_prev = -1;
|
||||
static int selected[SNeutrinoSettings::BUTTON_MAX] = {-1, -1, -1, -1};
|
||||
|
||||
// define classes
|
||||
CFavorites* tmpFavorites = NULL;
|
||||
@@ -739,6 +739,8 @@ bool CNeutrinoApp::showUserMenu(int button)
|
||||
else if (menu_item != NULL)
|
||||
menu_item->exec( NULL );
|
||||
|
||||
selected[button] = menu->getSelected();
|
||||
|
||||
// restore mute symbol
|
||||
//AudioMute(current_muted, true);
|
||||
|
||||
|
Reference in New Issue
Block a user