improves plak

This commit is contained in:
2026-10-17 17:33:13 +02:00
parent 7b891819b0
commit a92d6f8871
633 changed files with 17623 additions and 7556 deletions
+3
View File
@@ -43,10 +43,12 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
}
func applicationWillResignActive(_ notification: Notification) {
windowController?.page.closeEditor()
store?.flush()
}
func applicationWillTerminate(_ notification: Notification) {
windowController?.page.closeEditor()
store?.flush()
}
@@ -64,6 +66,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
/// Only hiding the app gives focus back to the previous app; an ordered-out window leaves Plak active.
private func hidePlak() {
windowController?.page.closeEditor()
NSApp.hide(nil)
}