electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 640d6641aa9b7a4a1f380faf0273f2eca5f3a3cd
parent c76da17262be082828224e10399f258324886368
Author: ThomasV <thomasv@gitorious>
Date:   Sun,  4 May 2014 21:58:02 +0200

fix #444

Diffstat:
Mgui/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 @@ -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)