From 8ecf26bc377b3c06d15244af911103794adbf9f8 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Mon, 7 Nov 2022 16:55:54 +0100 Subject: [PATCH] Restore app from tray when the login procedure starts --- gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui.py b/gui.py index d85e438..ab46b43 100644 --- a/gui.py +++ b/gui.py @@ -453,6 +453,8 @@ class LoginForm: async def ask_login(self) -> str: self.update(_("gui", "login", "required"), None) self._manager.print(_("gui", "login", "request")) + # ensure the window isn't hidden into tray when this runs + self._manager.tray.restore() # the user needs to press on the login button to open the browser self._confirm.clear() try: @@ -1068,7 +1070,7 @@ class TrayIcon: def restore(self): if self.is_tray(): self.stop() - self._manager._root.deiconify() + self._manager._root.deiconify() def notify( self, message: str, title: str | None = None, duration: float = 10