Browse Source

Merge branch 'window-position' into merged

283
bkkcoins 12 years ago
parent
commit
413e5b9cc4
  1. 4
      lib/gui_lite.py
  2. 2
      lib/gui_qt.py

4
lib/gui_lite.py

@ -256,8 +256,8 @@ class MiniWindow(QDialog):
def closeEvent(self, event):
cfg = SimpleConfig()
g = self.geometry()
cfg.config["winpos-lite"] = [g.left(),g.top(),g.width(),g.height()]
cfg.config["history"] = self.history_list.isVisible()
cfg.set_key("winpos-lite", [g.left(),g.top(),g.width(),g.height()])
cfg.set_key("history", self.history_list.isVisible())
cfg.save_config()
super(MiniWindow, self).closeEvent(event)

2
lib/gui_qt.py

@ -1462,7 +1462,7 @@ class ElectrumWindow(QMainWindow):
def closeEvent(self, event):
cfg = SimpleConfig()
g = self.geometry()
cfg.config["winpos-qt"] = [g.left(),g.top(),g.width(),g.height()]
cfg.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()])
cfg.save_config()
event.accept()

Loading…
Cancel
Save