Hide the system tray icon before closing

This commit is contained in:
Micah Lee 2019-09-20 18:42:40 -07:00
parent 94e2f4997c
commit a946420646

View File

@ -540,6 +540,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
def closeEvent(self, e):
self.common.log('OnionShareGui', 'closeEvent')
self.system_tray.hide()
try:
if self.mode == OnionShareGui.MODE_SHARE:
server_status = self.share_mode.server_status