From ad24870a03e919c40b8da74c6415a710dbfec8d7 Mon Sep 17 00:00:00 2001 From: bkkcoins Date: Fri, 21 Sep 2012 15:10:43 +0700 Subject: [PATCH] small edit to config syntax --- lib/gui_lite.py | 4 ++-- lib/gui_qt.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gui_lite.py b/lib/gui_lite.py index bb267e365..ef3260090 100644 --- a/lib/gui_lite.py +++ b/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) diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 5fdd2487c..60bce0374 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -1429,7 +1429,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()