improves plak
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user