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 e3eb724a2..96d1ccb2a 100644 --- a/lib/gui_qt.py +++ b/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()