mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
gui/record_setup.cpp: now, with mount/umount menu, disable directory switch,
if record is running
Origin commit data
------------------
Commit: bbf0a95542
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-05-01 (Thu, 01 May 2014)
This commit is contained in:
@@ -201,12 +201,13 @@ int CRecordSetup::showRecordSetup()
|
|||||||
recordingSettings->addItem(mf);
|
recordingSettings->addItem(mf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool recstatus = CNeutrinoApp::getInstance()->recordingstatus;
|
||||||
//record dir
|
//record dir
|
||||||
CMenuForwarder* fRecDir;
|
CMenuForwarder* fRecDir;
|
||||||
if (g_settings.easymenu)
|
if (g_settings.easymenu)
|
||||||
fRecDir = new CMenuForwarder(LOCALE_RECORDINGMENU_DEFDIR, true, g_settings.network_nfs_recordingdir, this, "recordingdir", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
fRecDir = new CMenuForwarder(LOCALE_RECORDINGMENU_DEFDIR, !recstatus, g_settings.network_nfs_recordingdir, this, "recordingdir", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
||||||
else
|
else
|
||||||
fRecDir = new CMenuForwarder(LOCALE_RECORDINGMENU_DEFDIR, true, g_settings.network_nfs_recordingdir, this, "recordingdir");
|
fRecDir = new CMenuForwarder(LOCALE_RECORDINGMENU_DEFDIR, !recstatus, g_settings.network_nfs_recordingdir, this, "recordingdir");
|
||||||
fRecDir->setHint("", LOCALE_MENU_HINT_RECORD_DIR);
|
fRecDir->setHint("", LOCALE_MENU_HINT_RECORD_DIR);
|
||||||
recordingSettings->addItem(fRecDir);
|
recordingSettings->addItem(fRecDir);
|
||||||
|
|
||||||
@@ -376,7 +377,8 @@ void CRecordSetup::showRecordTimeShiftSetup(CMenuWidget *menu_ts)
|
|||||||
menu_ts->addIntroItems(LOCALE_RECORDINGMENU_TIMESHIFT);
|
menu_ts->addIntroItems(LOCALE_RECORDINGMENU_TIMESHIFT);
|
||||||
|
|
||||||
//timeshift dir
|
//timeshift dir
|
||||||
CMenuForwarder* fTsDir = new CMenuForwarder(LOCALE_RECORDINGMENU_TSDIR, true, g_settings.timeshiftdir, this, "timeshiftdir");
|
bool recstatus = CNeutrinoApp::getInstance()->recordingstatus;
|
||||||
|
CMenuForwarder* fTsDir = new CMenuForwarder(LOCALE_RECORDINGMENU_TSDIR, !recstatus, g_settings.timeshiftdir, this, "timeshiftdir");
|
||||||
fTsDir->setHint("", LOCALE_MENU_HINT_RECORD_TDIR);
|
fTsDir->setHint("", LOCALE_MENU_HINT_RECORD_TDIR);
|
||||||
menu_ts->addItem(fTsDir);
|
menu_ts->addItem(fTsDir);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user