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:
parent
346e4902f0
commit
55fa06dd73
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user