mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
systray: Out of paranoia, only .withdraw() on win32
Just in case a user gets the bright idea to set the config option manually....
This commit is contained in:
parent
8af5424f9d
commit
538c06e342
@ -1754,7 +1754,7 @@ class AppWindow(object):
|
||||
def default_iconify(self, event=None) -> None:
|
||||
"""Handle the Windows default theme 'minimise' button."""
|
||||
# If we're meant to "minimize to system tray" then hide the window so no taskbar icon is seen
|
||||
if config.get_bool('minimize_system_tray'):
|
||||
if sys.platform == 'win32' and config.get_bool('minimize_system_tray'):
|
||||
# This gets called for more than the root widget, so only react to that
|
||||
if str(event.widget) == '.':
|
||||
self.w.withdraw()
|
||||
@ -1764,7 +1764,6 @@ class AppWindow(object):
|
||||
self.w.overrideredirect(False) # Can't iconize while overrideredirect
|
||||
self.w.iconify()
|
||||
self.w.update_idletasks() # Size and windows styles get recalculated here
|
||||
|
||||
self.w.wait_visibility() # Need main window to be re-created before returning
|
||||
theme.active = None # So theme will be re-applied on map
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user