From: Stefan Pluecken Date: Sun, 27 Apr 2008 22:05:13 +0000 (+0000) Subject: remove check for config.misc.firstrun and start video wizard if X-Git-Tag: 2.6.0~1290 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/37a96b1e3b2c6b09e7b868ed2ab0e2a5a92ba735 remove check for config.misc.firstrun and start video wizard if config.misc.videowizardenabled is true instead --- diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 2f8e8e78..f7763893 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -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 = [] diff --git a/lib/python/Plugins/SystemPlugins/Videomode/plugin.py b/lib/python/Plugins/SystemPlugins/Videomode/plugin.py index 031d2c12..115e81f7 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/plugin.py @@ -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