Fix release build compile error caused by recent RefreshTimer refactoring.

This commit is contained in:
Maurice Parker 2019-04-24 14:46:01 -05:00
parent 60a028498c
commit 476bd7ec56
1 changed files with 3 additions and 3 deletions

View File

@ -151,15 +151,15 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
self.toggleInspectorWindow(self) self.toggleInspectorWindow(self)
} }
refreshTimer = RefreshTimer(delegate: self)
#if RELEASE #if RELEASE
debugMenuItem.menu?.removeItem(debugMenuItem) debugMenuItem.menu?.removeItem(debugMenuItem)
DispatchQueue.main.async { DispatchQueue.main.async {
self.timedRefresh(nil) self.refreshTimer!.timedRefresh(nil)
} }
#endif #endif
refreshTimer = RefreshTimer(delegate: self)
#if DEBUG #if DEBUG
refreshTimer!.update() refreshTimer!.update()
#endif #endif