1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

systray: Remove another bit of code.

If a user had enabled the 'Minimize to systray' option then this would
cause the window to disappear on minimise, with no way to get it back.
This commit is contained in:
Athanasius 2021-05-05 21:21:20 +01:00
parent 346e4902f0
commit 55fa06dd73

View File

@ -1482,16 +1482,11 @@ class AppWindow(object):
def oniconify(self, event=None) -> None:
"""Handle minimization of the application."""
value = config.get_bool('minimize_system_tray')
if platform == 'win32' and value is not None and value:
self.w.withdraw()
else:
self.w.overrideredirect(0) # 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
self.w.overrideredirect(0) # 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
# TODO: Confirm this is unused and remove.
def onmap(self, event=None) -> None: