Fix system tray icon not being hidden when quitting on windows

This commit is contained in:
Kovid Goyal 2009-02-10 13:59:37 -08:00
parent de1f54d39f
commit 5c4294652e

View File

@ -1572,6 +1572,11 @@ def main(args=sys.argv):
print 'Restarting with:', e, sys.argv
os.execvp(e, sys.argv)
else:
if iswindows:
try:
main.system_tray_icon.hide()
except:
pass
return ret
return 0