diff options
| author | Dustin Mierau <dustin@mierau.me> | 2025-10-27 21:51:31 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2025-10-27 21:51:31 -0700 |
| commit | d8a10c38a3c26a187d8f310eba56d4e9ca8c5b27 (patch) | |
| tree | da5c43526f9cdcfb4092d464ae49d0b8f0ad9187 /Hotline | |
| parent | 4bb0ffba596e41a8309ba50d222248a0ba3eb42e (diff) | |
Fix preview window not being centered every time.
Diffstat (limited to 'Hotline')
| -rw-r--r-- | Hotline/MacApp.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Hotline/MacApp.swift b/Hotline/MacApp.swift index 5d1b912..dd7e190 100644 --- a/Hotline/MacApp.swift +++ b/Hotline/MacApp.swift @@ -307,6 +307,7 @@ struct Application: App { .windowToolbarStyle(.unifiedCompact(showsTitle: true)) .defaultSize(width: 350, height: 150) .defaultPosition(.center) + .restorationBehavior(.disabled) // MARK: Text Preview Window WindowGroup(id: "preview-text", for: PreviewFileInfo.self) { $info in @@ -317,6 +318,7 @@ struct Application: App { .windowToolbarStyle(.unifiedCompact(showsTitle: true)) .defaultSize(width: 450, height: 550) .defaultPosition(.center) + .restorationBehavior(.disabled) } func connect(to item: TrackerSelection) { |