From b9a26f614d8eee40b6caca4eb008ce14f0a80f24 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Thu, 14 Jun 2007 22:16:52 +0000 Subject: - Added option in live setup to disable infobox at all. Fixes #312 --- setup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.cpp') 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; } -- cgit v1.2.3