Merge pull request #1034 from micahflee/932_windows_systray_icon

Hide the system tray icon before closing
This commit is contained in:
Micah Lee 2019-09-22 12:57:46 -07:00 committed by GitHub
commit e2b6eecf34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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