Browse Source

Fix: hide tray icon on close

283
thgh 11 years ago
parent
commit
7847382bfe
  1. 3
      gui/qt/lite_window.py
  2. 1
      gui/qt/main_window.py

3
gui/qt/lite_window.py

@ -355,8 +355,7 @@ class MiniWindow(QDialog):
def closeEvent(self, event): def closeEvent(self, event):
g = self.geometry() g = self.geometry()
self.config.set_key("winpos-lite", [g.left(),g.top(),g.width(),g.height()],True) self.config.set_key("winpos-lite", [g.left(),g.top(),g.width(),g.height()],True)
self.actuator.g.closeEvent(event)
super(MiniWindow, self).closeEvent(event)
qApp.quit() qApp.quit()
def set_payment_fields(self, dest_address, amount): def set_payment_fields(self, dest_address, amount):

1
gui/qt/main_window.py

@ -2137,6 +2137,7 @@ class ElectrumWindow(QMainWindow):
NetworkDialog(self.wallet.network, self.config, self).do_exec() NetworkDialog(self.wallet.network, self.config, self).do_exec()
def closeEvent(self, event): def closeEvent(self, event):
self.tray.hide()
g = self.geometry() g = self.geometry()
self.config.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()], True) self.config.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()], True)
self.save_column_widths() self.save_column_widths()

Loading…
Cancel
Save