mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
neutrino: add the possibility to lock bouquets by default
This basically inverts the "locked" attribute of bouquets.xml and allows to selectively enable only favourites or similar. Conflicts: src/gui/channellist.cpp
This commit is contained in:
committed by
[CST] Focus
parent
d79d592d27
commit
27493de2ef
@@ -674,6 +674,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.parentallock_prompt = 3;
|
||||
g_settings.parentallock_lockage = 18;
|
||||
}
|
||||
g_settings.parentallock_defaultlocked = configfile.getInt32("parentallock_defaultlocked", 0);
|
||||
strcpy( g_settings.parentallock_pincode, configfile.getString( "parentallock_pincode", "0000" ).c_str() );
|
||||
|
||||
for (int i = 0; i < SNeutrinoSettings::TIMING_SETTING_COUNT; i++)
|
||||
@@ -1096,6 +1097,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt32( "parentallock_prompt", g_settings.parentallock_prompt );
|
||||
configfile.setInt32( "parentallock_lockage", g_settings.parentallock_lockage );
|
||||
configfile.setString( "parentallock_pincode", g_settings.parentallock_pincode );
|
||||
configfile.setInt32("parentallock_defaultlocked", g_settings.parentallock_defaultlocked);
|
||||
|
||||
//timing
|
||||
for (int i = 0; i < SNeutrinoSettings::TIMING_SETTING_COUNT; i++)
|
||||
|
Reference in New Issue
Block a user