remove check for config.misc.firstrun and start video wizard if
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 27 Apr 2008 22:05:13 +0000 (22:05 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 27 Apr 2008 22:05:13 +0000 (22:05 +0000)
config.misc.videowizardenabled is true instead

lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
lib/python/Plugins/SystemPlugins/Videomode/plugin.py

index 2f8e8e78d01c16f4e337ab38f19b4fd4bfd1b86e..f776389355a60ffbafdd51012500ffb1653ef81a 100644 (file)
@@ -74,7 +74,9 @@ class VideoWizard(WizardLanguage):
                return VideoWizardSummary
                
        def markDone(self):
-               pass
+               config.misc.videowizardenabled.value = 0
+               config.misc.videowizardenabled.save()
+               configfile.save()
        
        def listInputChannels(self):
                list = []
index 031d2c12fecabc4716491de37695408b317c95bf..115e81f77a38f887611b0391857fef18aa8ce8b3 100644 (file)
@@ -2,11 +2,12 @@ from Screens.Screen import Screen
 from Plugins.Plugin import PluginDescriptor
 from Components.SystemInfo import SystemInfo
 from Components.ConfigList import ConfigListScreen
-from Components.config import getConfigListEntry, config
-from Components.config import config
+from Components.config import getConfigListEntry, config, ConfigBoolean
 
 from VideoHardware import video_hw
 
+config.misc.videowizardenabled = ConfigBoolean(default = True)
+
 class VideoSetup(Screen, ConfigListScreen):
        def __init__(self, session, hw):
                Screen.__init__(self, session)
@@ -208,6 +209,6 @@ def Plugins(**kwargs):
 #              PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart),
                PluginDescriptor(name=_("Video Setup"), description=_("Advanced Video Setup"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup) 
        ]
-       if config.misc.firstrun.value:
+       if config.misc.videowizardenabled.value:
                list.append(PluginDescriptor(name=_("Video Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(0, VideoWizard)))
        return list