From ddb5131ae88ce0872f151ad8192a965366f10bc4 Mon Sep 17 00:00:00 2001 From: diyaa Date: Sun, 26 Jul 2026 22:15:35 +0200 Subject: [PATCH] Show Fchati as a dock application --- FchatiApp/Info.plist | 2 -- FchatiApp/Sources/FchatiApp/FchatiApp.swift | 7 ++++++- IMPLEMENTATION_STATUS.md | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/FchatiApp/Info.plist b/FchatiApp/Info.plist index 7150a91..28c212c 100644 --- a/FchatiApp/Info.plist +++ b/FchatiApp/Info.plist @@ -24,7 +24,5 @@ NSMicrophoneUsageDescription Fchati uses the microphone to record voice messages. - LSUIElement - diff --git a/FchatiApp/Sources/FchatiApp/FchatiApp.swift b/FchatiApp/Sources/FchatiApp/FchatiApp.swift index 66e39ba..bbed68e 100644 --- a/FchatiApp/Sources/FchatiApp/FchatiApp.swift +++ b/FchatiApp/Sources/FchatiApp/FchatiApp.swift @@ -5,6 +5,11 @@ import SwiftUI @main struct FchatiApp: App { var body: some Scene { + WindowGroup("Fchati") { + RootView() + } + .defaultSize(width: 420, height: 560) + MenuBarExtra("Fchati", systemImage: "message") { RootView() .background(WindowConfigurator()) @@ -93,7 +98,7 @@ private struct RootView: View { } .frame(maxWidth: .infinity, maxHeight: .infinity) } - .frame(width: 360) + .frame(minWidth: 360, idealWidth: 420, maxWidth: 640) .frame(minHeight: 480) } } diff --git a/IMPLEMENTATION_STATUS.md b/IMPLEMENTATION_STATUS.md index 48415c4..6fc9556 100644 --- a/IMPLEMENTATION_STATUS.md +++ b/IMPLEMENTATION_STATUS.md @@ -198,6 +198,7 @@ - Corrected the production hostname to `fchaty.diyaa.de` in the relay route and macOS application HTTP and WebSocket clients. - `relay-server/Dockerfile` initializes all persistent-data paths as the unprivileged `node` user, preventing pairing, queue, and upload write failures on newly created volumes. - The macOS app now has an always-visible quit control beside the top-level tabs, in addition to the existing Settings action. +- The macOS app now includes a normal main window and Dock presence while retaining the menu-bar shortcut. ## Bug Fixes — Post-Review ✅