diff --git a/writeas/AppDelegate.swift b/writeas/AppDelegate.swift index 9599da9..4c60e28 100644 --- a/writeas/AppDelegate.swift +++ b/writeas/AppDelegate.swift @@ -23,7 +23,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { } func applicationWillTerminate(_ aNotification: Notification) { - // Insert code here to tear down your application + vc?.saveDocument() } func applicationDidBecomeActive(_ notification: Notification) {