summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-14 22:16:52 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-14 22:16:52 +0000
commitb9a26f614d8eee40b6caca4eb008ce14f0a80f24 (patch)
tree42859cdee170a695e89ca2ea1dbf78ec34d44742 /setup.cpp
parent3cf762e06f46d1f69e06030b95ffaed3b951b46d (diff)
downloadvdr-plugin-live-b9a26f614d8eee40b6caca4eb008ce14f0a80f24.tar.gz
vdr-plugin-live-b9a26f614d8eee40b6caca4eb008ce14f0a80f24.tar.bz2
- Added option in live setup to disable infobox at all. Fixes #312
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.cpp b/setup.cpp
index c59f4eb..8f97a67 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -29,7 +29,8 @@ Setup::Setup():
m_adminLogin("admin"),
m_theme("marine"),
m_lastwhatsonlistmode("detail"),
- m_tntnetloglevel("INFO")
+ m_tntnetloglevel("INFO"),
+ m_showInfoBox(1)
{
m_adminPasswordMD5 = "4:" + MD5Hash("live");
liveplugin = cPluginManager::GetPlugin("live");
@@ -85,6 +86,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value )
else if ( strcmp( name, "Theme" ) == 0 ) m_theme = value;
else if ( strcmp( name, "LocalNetMask" ) == 0 ) { m_localnetmask = value; }
else if ( strcmp( name, "LastWhatsOnListMode" ) == 0 ) { m_lastwhatsonlistmode = value; }
+ else if ( strcmp( name, "ShowInfoBox" ) == 0 ) { m_showInfoBox = atoi(value); }
else return false;
return true;
}
@@ -208,6 +210,7 @@ bool Setup::SaveSetup()
liveplugin->SetupStore("StartPage", m_startscreen.c_str());
liveplugin->SetupStore("Theme", m_theme.c_str());
liveplugin->SetupStore("LastWhatsOnListMode", m_lastwhatsonlistmode.c_str());
+ liveplugin->SetupStore("ShowInfoBox", m_showInfoBox);
return true;
}