mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- record-menu: allow to exit with RC_stop, when no records available
This allows to call and exit this menu without to move the finger on the remotecontrol Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1464,6 +1464,9 @@ int CRecordManager::exec(CMenuTarget* parent, const std::string & actionKey )
|
|||||||
ShowHint(LOCALE_MAINMENU_RECORDING_STOP, g_Locale->getText(LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING), 450, 2);
|
ShowHint(LOCALE_MAINMENU_RECORDING_STOP, g_Locale->getText(LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING), 450, 2);
|
||||||
return menu_return::RETURN_EXIT_ALL;
|
return menu_return::RETURN_EXIT_ALL;
|
||||||
}
|
}
|
||||||
|
} else if (actionKey == "Exit")
|
||||||
|
{
|
||||||
|
return menu_return::RETURN_EXIT_ALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowMenu();
|
ShowMenu();
|
||||||
@@ -1483,6 +1486,8 @@ bool CRecordManager::ShowMenu(void)
|
|||||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||||
|
|
||||||
CMenuWidget menu(LOCALE_MAINMENU_RECORDING, NEUTRINO_ICON_RECORDING /*, width*/);
|
CMenuWidget menu(LOCALE_MAINMENU_RECORDING, NEUTRINO_ICON_RECORDING /*, width*/);
|
||||||
|
if (rec_count == 0)
|
||||||
|
menu.addKey(CRCInput::RC_stop, this, "Exit");
|
||||||
menu.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
|
menu.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
|
||||||
|
|
||||||
// Record / Timeshift
|
// Record / Timeshift
|
||||||
|
Reference in New Issue
Block a user