Skip to content

Commit

Permalink
Merge pull request XX-net#1764 from Lrevor/patch-1
Browse files Browse the repository at this point in the history
Update win_tray.py
  • Loading branch information
xxnet committed Dec 30, 2015
2 parents 820a4da + 1f4b03f commit 03c5b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion launcher/win_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def on_quit(self, widget, data=None):
if proxy_setting != "disable":
win32_proxy_manager.disable_proxy()
module_init.stop_all()
nid = win32_adapter.NotifyData(self.systray._hwnd, 0)
win32_adapter.Shell_NotifyIcon(2, ctypes.byref(nid))
os._exit(0)

def serve_forever(self):
Expand All @@ -153,4 +155,4 @@ def main():
sys_tray.serve_forever()

if __name__ == '__main__':
main()
main()

0 comments on commit 03c5b7b

Please sign in to comment.