From 55fa06dd73dad6677685fdffbc3a21b34e6e35b4 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 5 May 2021 21:21:20 +0100 Subject: [PATCH] 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. --- EDMarketConnector.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 659c448b..4fad261b 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -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: