diff --git a/lib/screens/tray_manager.dart b/lib/screens/tray_manager.dart index ef38de5f..5f03e40b 100644 --- a/lib/screens/tray_manager.dart +++ b/lib/screens/tray_manager.dart @@ -48,11 +48,12 @@ class TrayService { void handleAction(MenuItem item) { switch (item.key) { case 'show_window': - if (appWindow.isVisible) { - appWindow.restore(); - } else { - appWindow.show(); - } + () async { + appWindow.show(); + appWindow.restore(); + await Future.delayed(const Duration(milliseconds: 32)); + appWindow.show(); + }(); break; case 'exit_app': appWindow.close();