From 41687a7bbe9c8d304b805a9a5f7e14101f1d75a5 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 3 Jun 2007 18:34:17 +0000 Subject: - save and restore last list mode in "What's on" --- setup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.cpp') diff --git a/setup.cpp b/setup.cpp index 08f808b..4e9291b 100644 --- a/setup.cpp +++ b/setup.cpp @@ -26,7 +26,8 @@ Setup::Setup(): m_lastChannel( 0 ), m_screenshotInterval( 1000 ), m_useAuth( 1 ), - m_adminLogin("admin") + m_adminLogin("admin"), + m_lastwhatsonlistmode("detail") { m_adminPasswordMD5 = "4:" + MD5Hash("live"); liveplugin = cPluginManager::GetPlugin("live"); @@ -77,6 +78,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value ) else if ( strcmp( name, "UserdefTimes" ) == 0 ) m_times = value; else if ( strcmp( name, "StartPage" ) == 0 ) m_startscreen = value; else if ( strcmp( name, "LocalNetMask" ) == 0 ) { m_localnetmask = value; } + else if ( strcmp( name, "LastWhatsOnListMode" ) == 0 ) { m_lastwhatsonlistmode = value; } else return false; return true; } @@ -198,6 +200,7 @@ bool Setup::SaveSetup() } liveplugin->SetupStore("UserdefTimes", m_times.c_str()); liveplugin->SetupStore("StartPage", m_startscreen.c_str()); + liveplugin->SetupStore("LastWhatsOnListMode", m_lastwhatsonlistmode.c_str()); return true; } -- cgit v1.2.3