diff --git a/writeas/AppDelegate.swift b/writeas/AppDelegate.swift index bba6472..bc9c6b6 100644 --- a/writeas/AppDelegate.swift +++ b/writeas/AppDelegate.swift @@ -42,7 +42,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { func applicationWillTerminate(_ aNotification: Notification) { vc?.saveDocument() } - + + func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } + func applicationDidBecomeActive(_ notification: Notification) { if vc == nil { vc = NSApplication.shared().mainWindow?.contentViewController as? ViewController