Show Fchati as a dock application

This commit is contained in:
diyaa 2026-07-26 22:15:35 +02:00
parent f9e74d2dfe
commit ddb5131ae8
3 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,5 @@
<true/>
<key>NSMicrophoneUsageDescription</key>
<string>Fchati uses the microphone to record voice messages.</string>
<key>LSUIElement</key>
<true/>
</dict>
</plist>

View File

@ -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)
}
}

View File

@ -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 ✅