From 640d6641aa9b7a4a1f380faf0273f2eca5f3a3cd Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 4 May 2014 21:58:02 +0200 Subject: [PATCH] fix #444 --- gui/qt/main_window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index c93ce9a97..e233b0b02 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -135,6 +135,8 @@ class ElectrumWindow(QMainWindow): g = self.config.get("winpos-qt",[100, 100, 840, 400]) self.setGeometry(g[0], g[1], g[2], g[3]) + if self.config.get("is_maximized"): + self.showMaximized() self.setWindowIcon(QIcon(":icons/electrum.png")) self.init_menubar() @@ -2227,8 +2229,10 @@ class ElectrumWindow(QMainWindow): def closeEvent(self, event): self.tray.hide() - g = self.geometry() - self.config.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()], True) + self.config.set_key("is_maximized", self.isMaximized()) + if not self.isMaximized(): + g = self.geometry() + self.config.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()]) self.save_column_widths() self.config.set_key("console-history", self.console.history[-50:], True) self.wallet.storage.put('accounts_expanded', self.accounts_expanded)