record: show record-menu after no-records-hint; ...

It makes no sense to show the menu only if records are running.
There are items to start record and timeshift.


Origin commit data
------------------
Commit: df96507e42
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-29 (Sun, 29 Jul 2018)

Origin message was:
------------------
- record: show record-menu after no-records-hint; ...

It makes no sense to show the menu only if records are running.
There are items to start record and timeshift.
This commit is contained in:
vanhofen
2018-07-29 00:54:55 +02:00
parent c6e65bf5b7
commit 91b5cfd7bf

View File

@@ -1518,9 +1518,10 @@ int CRecordManager::exec(CMenuTarget* parent, const std::string & actionKey )
return menu_return::RETURN_EXIT_ALL;
} else if(actionKey == "Stop_record")
{
if(!CRecordManager::getInstance()->RecordingStatus()) {
ShowHint(LOCALE_MAINMENU_RECORDING_STOP, g_Locale->getText(LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING), 450, 2);
return menu_return::RETURN_EXIT_ALL;
if (!CRecordManager::getInstance()->RecordingStatus())
{
ShowHint(LOCALE_MAINMENU_RECORDING_STOP, LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING, 450, 2);
//return menu_return::RETURN_EXIT_ALL;
}
}