summaryrefslogtreecommitdiff
path: root/Config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Config.cpp')
-rw-r--r--Config.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Config.cpp b/Config.cpp
index 0ce98d6..c3a5abf 100644
--- a/Config.cpp
+++ b/Config.cpp
@@ -65,8 +65,11 @@ cMyMenuSetupPage::cMyMenuSetupPage(void)
strn0cpy(Username, Config::GetInstance().s_username.c_str(), STRING_SIZE);
strn0cpy(Password, Config::GetInstance().s_password.c_str(), STRING_SIZE);
strn0cpy(Uuid, Config::GetInstance().GetUUID().c_str(), STRING_SIZE);
+ HideMainMenuEntry = Config::GetInstance().HideMainMenuEntry;
+ UseCustomTranscodeProfile = Config::GetInstance().UseCustomTranscodeProfile;
- Add(new cMenuEditBoolItem(tr("Hide main menu entry"), (int*)&Config::GetInstance().HideMainMenuEntry, trVDR("no"), trVDR("yes")));
+ Add(new cMenuEditBoolItem(tr("Hide main menu entry"), (int*)&HideMainMenuEntry, trVDR("no"), trVDR("yes")));
+ Add(new cMenuEditBoolItem(tr("Use custom transcoding profile"), (int*)&UseCustomTranscodeProfile, trVDR("no"), trVDR("yes")));
Add(new cMenuEditStrItem(tr("Plex Username"), Username, STRING_SIZE));
Add(new cMenuEditStrItem(tr("Plex Password"), Password, STRING_SIZE));
cMenuEditStrItem* devUUID = new cMenuEditStrItem(tr("Current UUID"), Uuid, STRING_SIZE);
@@ -81,7 +84,10 @@ void cMyMenuSetupPage::Store(void)
{
Config::GetInstance().s_username = std::string(Username);
Config::GetInstance().s_password = std::string(Password);
+ Config::GetInstance().HideMainMenuEntry = HideMainMenuEntry;
+ Config::GetInstance().UseCustomTranscodeProfile = UseCustomTranscodeProfile;
+ SetupStore("UseCustomTranscodeProfile", Config::GetInstance().UseCustomTranscodeProfile);
SetupStore("HideMainMenuEntry", Config::GetInstance().HideMainMenuEntry);
SetupStore("Username", Config::GetInstance().s_username.c_str());
SetupStore("Password", Config::GetInstance().s_password.c_str());