Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Reopening Filee on a Mac always brings its window back

KnifeLemond22027dc2824
diff --git a/src/Filee.App/App.axaml.cs b/src/Filee.App/App.axaml.cs
index b804ec7b..49d1e2f7 100644
--- a/src/Filee.App/App.axaml.cs
+++ b/src/Filee.App/App.axaml.cs
@@ -151,8 +151,9 @@ public partial class App : Application
if (e.Kind == ActivationKind.Reopen)
Dispatcher.UIThread.Post(() =>
{
- if (!store.Settings.ShowMenuBarIcon)
- AppHost.Get<WindowService>().ShowMain(store.Settings.FirstRunCompleted ? null : "home");
+ // Clicking the Dock icon or opening Filee again in Finder brings the window back, as Mac apps do
+ // (#232), also while it only runs in the background.
+ AppHost.Get<WindowService>().ShowMain(store.Settings.FirstRunCompleted ? null : "home");
if (!store.Settings.ShowInDock && !platform.TrySetShowInDock(false))
log.LogWarning("Could not restore the macOS Dock visibility policy after reopening Filee");
});