mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +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
Origin commit data
------------------
Commit: b2649b0c4d
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-29 (Sun, 29 Jul 2018)
Origin message was:
------------------
- 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
This commit is contained in:
@@ -1523,6 +1523,9 @@ int CRecordManager::exec(CMenuTarget* parent, const std::string & actionKey )
|
||||
ShowHint(LOCALE_MAINMENU_RECORDING_STOP, LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING, 450, 2);
|
||||
//return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
} else if (actionKey == "Exit")
|
||||
{
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
|
||||
ShowMenu();
|
||||
@@ -1542,6 +1545,8 @@ bool CRecordManager::ShowMenu(void)
|
||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||
|
||||
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);
|
||||
|
||||
// Record / Timeshift
|
||||
|
Reference in New Issue
Block a user