Browse Source

Fix compiler warning when downcasting ViewController

master
Matt Baer 4 years ago
parent
commit
0e2e48802a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      writeas/AppDelegate.swift

+ 1
- 1
writeas/AppDelegate.swift View File

@@ -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
}
}



Loading…
Cancel
Save