new wizard: set default values for proxy and autoconnect
This commit is contained in:
@@ -41,7 +41,7 @@ class WCAutoConnect(WizardComponent):
|
|||||||
"select a server manually.")
|
"select a server manually.")
|
||||||
choices = [('autoconnect', _("Auto connect")),
|
choices = [('autoconnect', _("Auto connect")),
|
||||||
('select', _("Select server manually"))]
|
('select', _("Select server manually"))]
|
||||||
self.choice_w = ChoiceWidget(message=message, choices=choices)
|
self.choice_w = ChoiceWidget(message=message, choices=choices, selected='autoconnect')
|
||||||
self.choice_w.itemSelected.connect(self.on_updated)
|
self.choice_w.itemSelected.connect(self.on_updated)
|
||||||
self.layout().addWidget(self.choice_w)
|
self.layout().addWidget(self.choice_w)
|
||||||
self.layout().addStretch(1)
|
self.layout().addStretch(1)
|
||||||
@@ -55,9 +55,11 @@ class WCProxyAsk(WizardComponent):
|
|||||||
def __init__(self, parent, wizard):
|
def __init__(self, parent, wizard):
|
||||||
WizardComponent.__init__(self, parent, wizard, title=_("Proxy"))
|
WizardComponent.__init__(self, parent, wizard, title=_("Proxy"))
|
||||||
message = _("Do you use a local proxy service such as TOR to reach the internet?")
|
message = _("Do you use a local proxy service such as TOR to reach the internet?")
|
||||||
choices = [('yes', _("Yes")),
|
choices = [
|
||||||
('no', _("No"))]
|
('no', _("No")),
|
||||||
self.choice_w = ChoiceWidget(message=message, choices=choices)
|
('yes', _("Yes")),
|
||||||
|
]
|
||||||
|
self.choice_w = ChoiceWidget(message=message, choices=choices, selected='no')
|
||||||
self.layout().addWidget(self.choice_w)
|
self.layout().addWidget(self.choice_w)
|
||||||
self.layout().addStretch(1)
|
self.layout().addStretch(1)
|
||||||
self._valid = True
|
self._valid = True
|
||||||
|
|||||||
Reference in New Issue
Block a user