mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix system tray icon not being hidden when quitting on windows
This commit is contained in:
parent
de1f54d39f
commit
5c4294652e
@ -1572,6 +1572,11 @@ def main(args=sys.argv):
|
|||||||
print 'Restarting with:', e, sys.argv
|
print 'Restarting with:', e, sys.argv
|
||||||
os.execvp(e, sys.argv)
|
os.execvp(e, sys.argv)
|
||||||
else:
|
else:
|
||||||
|
if iswindows:
|
||||||
|
try:
|
||||||
|
main.system_tray_icon.hide()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return ret
|
return ret
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user