mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
*neutrino record: if no recordings are running, set the focus to the record menu item
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1805 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1254,9 +1254,13 @@ bool CRecordManager::ShowMenu(void)
|
|||||||
bool status_ts = IsTimeshift(live_channel_id);
|
bool status_ts = IsTimeshift(live_channel_id);
|
||||||
bool status_rec = RecordingStatus(live_channel_id) && !status_ts;
|
bool status_rec = RecordingStatus(live_channel_id) && !status_ts;
|
||||||
|
|
||||||
|
//record item
|
||||||
iteml = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_REC_AKT, (!status_rec && !status_ts), NULL,
|
iteml = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_REC_AKT, (!status_rec && !status_ts), NULL,
|
||||||
this, "Record", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED);
|
this, "Record", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED);
|
||||||
menu.addItem(iteml, false);
|
//if no recordings are running, set the focus to the record menu item
|
||||||
|
menu.addItem(iteml, rec_count == 0 ? true: false);
|
||||||
|
|
||||||
|
//timeshift item
|
||||||
iteml = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, !status_ts, NULL,
|
iteml = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, !status_ts, NULL,
|
||||||
this, "Timeshift", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
this, "Timeshift", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
||||||
menu.addItem(iteml, false);
|
menu.addItem(iteml, false);
|
||||||
|
Reference in New Issue
Block a user