Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix window out of focus

Prateek Sunal1575767c8fcb
diff --git a/mobile/apps/auth/lib/app/view/app.dart b/mobile/apps/auth/lib/app/view/app.dart
index 7f23629f2f..443b225a75 100644
--- a/mobile/apps/auth/lib/app/view/app.dart
+++ b/mobile/apps/auth/lib/app/view/app.dart
@@ -200,6 +200,15 @@ class _AppState extends State<App>
}
}
+ @override
+ void onWindowFocus() {
+ // When window receives focus (e.g., reopened from app launcher while
+ // hidden to tray), ensure the taskbar icon is visible
+ if (Platform.isWindows || Platform.isLinux) {
+ windowManager.setSkipTaskbar(false);
+ }
+ }
+
@override
void onTrayIconRightMouseUp() {}