mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:22:45 +02:00
Fix system tray icon not being hidden when quitting on windows
This commit is contained in:
parent
de1f54d39f
commit
5c4294652e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue