X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c037049b05f361887e835a0ce1c7d63f3364539e..7cdca2a2cfb44ad34a3b36fb589f02b861c411c3:/lib/python/Screens/StartWizard.py diff --git a/lib/python/Screens/StartWizard.py b/lib/python/Screens/StartWizard.py index 81856ceb..1734d734 100644 --- a/lib/python/Screens/StartWizard.py +++ b/lib/python/Screens/StartWizard.py @@ -1,24 +1,25 @@ from Wizard import Wizard, wizardManager -from Components.Pixmap import * -from Components.config import configElementBoolean, config +from Components.Pixmap import Pixmap, MovingPixmap +from Components.config import config, ConfigBoolean, configfile from LanguageSelection import LanguageSelection -config.misc.firstrun = configElementBoolean("config.misc.firstrun", 1); +config.misc.firstrun = ConfigBoolean(default = True) +config.misc.languageselected = ConfigBoolean(default = True) class StartWizard(Wizard): skin = """ - - + + - + - - - - - + + + + + """ def __init__(self, session): @@ -33,8 +34,9 @@ class StartWizard(Wizard): self["arrowup2"] = MovingPixmap() def markDone(self): - config.misc.firstrun.value = 0; + config.misc.firstrun.value = 0 config.misc.firstrun.save() + configfile.save() -wizardManager.registerWizard(LanguageSelection, config.misc.firstrun.value) +wizardManager.registerWizard(LanguageSelection, config.misc.languageselected.value) wizardManager.registerWizard(StartWizard, config.misc.firstrun.value)