mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix: connection preferences were overwritten by wizard
This commit is contained in:
parent
f4abbd7981
commit
f643c3b44a
1 changed files with 4 additions and 6 deletions
|
@ -252,6 +252,9 @@ class InstallWizard(QDialog):
|
||||||
|
|
||||||
|
|
||||||
def network_dialog(self):
|
def network_dialog(self):
|
||||||
|
# skip this if config already exists
|
||||||
|
if self.config.get('server') is not None:
|
||||||
|
return
|
||||||
|
|
||||||
grid = QGridLayout()
|
grid = QGridLayout()
|
||||||
grid.setSpacing(5)
|
grid.setSpacing(5)
|
||||||
|
@ -289,15 +292,10 @@ class InstallWizard(QDialog):
|
||||||
|
|
||||||
if b2.isChecked():
|
if b2.isChecked():
|
||||||
return NetworkDialog(self.network, self.config, None).do_exec()
|
return NetworkDialog(self.network, self.config, None).do_exec()
|
||||||
|
else:
|
||||||
elif b1.isChecked():
|
|
||||||
self.config.set_key('auto_cycle', True, True)
|
self.config.set_key('auto_cycle', True, True)
|
||||||
return
|
return
|
||||||
|
|
||||||
else:
|
|
||||||
self.config.set_key("server", None, True)
|
|
||||||
self.config.set_key('auto_cycle', False, True)
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def show_message(self, msg, icon=None):
|
def show_message(self, msg, icon=None):
|
||||||
|
|
Loading…
Add table
Reference in a new issue