Skip to content

Commit

Permalink
fix startwizard
Browse files Browse the repository at this point in the history
  • Loading branch information
formiano committed Sep 22, 2024
1 parent 46b770b commit 9c9cd3e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/startwizard.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!--suppress XmlUnboundNsPrefix -->
<wizard>
<step id="start" nextstep="introduction">
<text value="Welcome.\n\nThis start wizard will guide you through the basic setup of your %s %s.\nPress the OK button on your remote control to move to the next step." />
Expand All @@ -19,6 +18,7 @@ self.selectKey("OK")
self.clearSelectedKeys()
self.selectKey("UP")
self.selectKey("DOWN")
self["key_yellow"].text = ""
</code>
</step>
<step id="network">
Expand Down
16 changes: 10 additions & 6 deletions data/videowizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<wizard>
<step id="inputselection" nextstep="modesdetection" timeout="10" timeoutaction="selectnext">
<condition>
self.portCount = len(self.listPorts())
self.condition = self.portCount > 1
if self.portCount == 1:
self.condition = len(self.listInputChannels()) > 1
if len(self.listInputChannels()) == 1:
self.selection = "HDMI"
self.portSelectionMoved()
self.inputSelectionMoved()
</condition>
<text value="Video input selection\n\nPlease press OK if you can see this page on your TV (or select a different input port).\n\nThe next input port will be automatically probed in 10 seconds." />
<displaytext value="Select video output port with UP/DOWN buttons" />
<list type="dynamic" source="listPorts" evaluation="portSelectionMade" onselect="portSelectionMoved" />
<list type="dynamic" source="listInputChannels" evaluation="inputSelectionMade" onselect="inputSelectionMoved" />
<code>
self["portpic"].show()
self.clearSelectedKeys()
self.selectKey("OK")
</code>
Expand Down Expand Up @@ -62,6 +62,7 @@ config.av.edid_override.save()
self.clearSelectedKeys()
self.selectKey("UP")
self.selectKey("DOWN")
self["portpic"].hide()
</code>
</step>
<step id="rateselection" nextstep="end" timeout="10" timeoutaction="selectnext">
Expand All @@ -79,7 +80,10 @@ self.selectKey("DOWN")
</step>
<step id="end">
<code>
self.saveWizardChanges()
self.hw.saveMode(self.port, self.mode, self.rate)
from Components.config import configfile
configfile.save()
self.markDone()
self.close()
</code>
</step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from Components.SystemInfo import BoxInfo, getBoxDisplayName
from Components.config import config
from Tools.Directories import resolveFilename, SCOPE_PLUGINS
from Screens.WizardLanguage import WizardLanguage


class NetworkWizard(Wizard, ShowRemoteControl):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ self.selectInterface()

<step id="selectinterface">

<step id="welcome">
<text value="Select the network interface to be used for the Internet connection.\n\nPress OK to continue." />
<displaytext value="Select interface" />
<list type="dynamic" source="listInterfaces" evaluation="InterfaceSelectionMade" onselect="InterfaceSelectionMoved" />
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class InfoBarAutoCam:

def __init__(self):
self.currentCam = BoxInfo.getItem("CurrentSoftcam")
self.defaultCam = config.misc.autocamDefault.value or self.currentCam
# self.defaultCam = config.misc.autocamDefault.value or self.currentCam
self.reload()

def reload(self):
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/StartWizard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
from Screens.HelpMenu import ShowRemoteControl
from Screens.Wizard import wizardManager
from Screens.WizardLanguage import WizardLanguage
Expand All @@ -13,6 +12,7 @@

config.misc.firstrun = ConfigBoolean(default=True)
config.misc.videowizardenabled = ConfigBoolean(default=True)
config.misc.networkenabled = ConfigBoolean(default=False)


class StartWizard(WizardLanguage, ShowRemoteControl):
Expand Down

0 comments on commit 9c9cd3e

Please sign in to comment.