mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +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
|
// USERMENU
|
||||||
|
static int selected[SNeutrinoSettings::BUTTON_MAX] = {-1, -1, -1, -1};
|
||||||
bool CNeutrinoApp::showUserMenu(int button)
|
bool CNeutrinoApp::showUserMenu(int button)
|
||||||
{
|
{
|
||||||
if (button < 0 || button >= SNeutrinoSettings::BUTTON_MAX)
|
if (button < 0 || button >= SNeutrinoSettings::BUTTON_MAX)
|
||||||
@@ -452,7 +453,6 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
|
|
||||||
int menu_items = 0;
|
int menu_items = 0;
|
||||||
int menu_prev = -1;
|
int menu_prev = -1;
|
||||||
static int selected[SNeutrinoSettings::BUTTON_MAX] = {-1, -1, -1, -1};
|
|
||||||
|
|
||||||
// define classes
|
// define classes
|
||||||
CFavorites* tmpFavorites = NULL;
|
CFavorites* tmpFavorites = NULL;
|
||||||
@@ -738,6 +738,8 @@ bool CNeutrinoApp::showUserMenu(int button)
|
|||||||
}
|
}
|
||||||
else if (menu_item != NULL)
|
else if (menu_item != NULL)
|
||||||
menu_item->exec( NULL );
|
menu_item->exec( NULL );
|
||||||
|
|
||||||
|
selected[button] = menu->getSelected();
|
||||||
|
|
||||||
// restore mute symbol
|
// restore mute symbol
|
||||||
//AudioMute(current_muted, true);
|
//AudioMute(current_muted, true);
|
||||||
|
Reference in New Issue
Block a user