Fix compiler warning when downcasting ViewController

This commit is contained in:
Matt Baer 2017-07-31 19:21:06 -04:00
parent 2a9b831312
commit 0e2e48802a

View File

@ -45,7 +45,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidBecomeActive(_ notification: Notification) { func applicationDidBecomeActive(_ notification: Notification) {
if vc == nil { if vc == nil {
vc = NSApplication.shared().mainWindow?.contentViewController as! ViewController vc = NSApplication.shared().mainWindow?.contentViewController as? ViewController
} }
} }