|
|
@ -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) |
|
|
|