aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-04-27 22:05:13 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-04-27 22:05:13 +0000
commit37a96b1e3b2c6b09e7b868ed2ab0e2a5a92ba735 (patch)
tree1cc3aeea077f6ae330eb872fb03723f25c6521ef /lib/python
parent2d99a849b913c564e510acb743192663e3a12c2d (diff)
downloadenigma2-37a96b1e3b2c6b09e7b868ed2ab0e2a5a92ba735.tar.gz
enigma2-37a96b1e3b2c6b09e7b868ed2ab0e2a5a92ba735.zip
remove check for config.misc.firstrun and start video wizard if
config.misc.videowizardenabled is true instead
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py4
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/plugin.py7
2 files changed, 7 insertions, 4 deletions
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