mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Windows: Fix restarting calibre with system tray icon enabled causing duplicate defunct icons in the tray. Fixes #1803034 [Windows 7 - Icon duplicated in notification area](https://bugs.launchpad.net/calibre/+bug/1803034)
This commit is contained in:
parent
37f584f90a
commit
c055ec3a15
@ -916,6 +916,9 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
||||
pass
|
||||
self.restart_after_quit = restart
|
||||
self.debug_on_restart = debug_on_restart
|
||||
if self.system_tray_icon is not None and self.restart_after_quit:
|
||||
# Needed on windows to prevent multiple systray icons
|
||||
self.system_tray_icon.setVisible(False)
|
||||
QApplication.instance().quit()
|
||||
|
||||
def donate(self, *args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user