diff --git a/writeas/AppDelegate.swift b/writeas/AppDelegate.swift index 47ccc94..f8427aa 100644 --- a/writeas/AppDelegate.swift +++ b/writeas/AppDelegate.swift @@ -45,7 +45,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidBecomeActive(_ notification: Notification) { if vc == nil { - vc = NSApplication.shared().mainWindow?.contentViewController as! ViewController + vc = NSApplication.shared().mainWindow?.contentViewController as? ViewController } }