Browse Source

Merge branch 'startup-gui-option' into merged

283
bkkcoins 12 years ago
parent
commit
1ca0595653
  1. 12
      lib/gui_qt.py

12
lib/gui_qt.py

@ -39,6 +39,7 @@ except:
from wallet import format_satoshis
from simple_config import SimpleConfig
import bmp, mnemonic, pyqrnative, qrscanner
from simple_config import SimpleConfig
from decimal import Decimal
@ -1242,6 +1243,13 @@ class ElectrumWindow(QMainWindow):
grid.addWidget(HelpButton(msg), 6, 2)
gap_e.textChanged.connect(lambda: numbify(nz_e,True))
gui = QComboBox()
gui.addItems(['Lite', 'Qt'])
cfg = SimpleConfig()
gui.setCurrentIndex(gui.findText(cfg.config["gui"].capitalize()))
grid.addWidget(QLabel(_('Default GUI') + ':'), 7, 0)
grid.addWidget(gui, 7, 1)
grid.addWidget(HelpButton(_('Select which GUI mode to use at start up. ')), 7, 2)
vbox.addLayout(ok_cancel_buttons(d))
d.setLayout(vbox)
@ -1290,6 +1298,10 @@ class ElectrumWindow(QMainWindow):
else:
QMessageBox.warning(self, _('Error'), _('Invalid value'), _('OK'))
cfg = SimpleConfig()
cfg.config["gui"] = str(gui.currentText()).lower()
cfg.save_config()
self.set_expert_mode(cb.isChecked())

Loading…
Cancel
Save