Release v1.1.0 — always open to main window

Post popoverWillOpen notification on show; ContentView resets showSettings
on receive so reopening always lands on the main window, not Settings.
This commit is contained in:
superdooper86
2026-05-07 18:02:04 +02:00
parent e41d3d0c0f
commit 3e99e1417e
5 changed files with 11 additions and 5 deletions
+3
View File
@@ -94,6 +94,9 @@ struct ContentView: View {
}
.frame(width: 480)
.animation(.easeInOut(duration: 0.2), value: showSettings)
.onReceive(NotificationCenter.default.publisher(for: .popoverWillOpen)) { _ in
showSettings = false
}
.onReceive(NotificationCenter.default.publisher(for: .openUpdateSheet)) { _ in
showSettings = false
showUpdateSheet = true