Skip to content

armgit / ente

Public Imported from GitHub
0

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

auto hide dock icon macos

eYdr1endf5a7d6c19bb
diff --git a/mobile/apps/auth/lib/app/view/app.dart b/mobile/apps/auth/lib/app/view/app.dart
index b6ff65001b..485c012e1e 100644
--- a/mobile/apps/auth/lib/app/view/app.dart
+++ b/mobile/apps/auth/lib/app/view/app.dart
@@ -199,9 +199,11 @@ class _AppState extends State<App>
switch (menuItem.key) {
case 'hide_window':
windowManager.hide();
+ windowManager.setSkipTaskbar(true);
break;
case 'show_window':
windowManager.show();
+ windowManager.setSkipTaskbar(false);
break;
case 'exit_app':
windowManager.destroy();
diff --git a/mobile/apps/auth/macos/Runner/AppDelegate.swift b/mobile/apps/auth/macos/Runner/AppDelegate.swift
index 0f8f95c206..6d58d54b75 100644
--- a/mobile/apps/auth/macos/Runner/AppDelegate.swift
+++ b/mobile/apps/auth/macos/Runner/AppDelegate.swift
@@ -11,6 +11,7 @@ class AppDelegate: FlutterAppDelegate {
}
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ NSApp.setActivationPolicy(.accessory)
return false
}
}