Move refresh-all to end of applicationDidFinishLaunching.
This commit is contained in:
parent
3994e19199
commit
6a09a2d6ef
|
@ -147,12 +147,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
|
|||
|
||||
createAndShowMainWindow()
|
||||
|
||||
#if RELEASE
|
||||
DispatchQueue.main.async {
|
||||
self.refreshAll(self)
|
||||
}
|
||||
#endif
|
||||
|
||||
NSAppleEventManager.shared().setEventHandler(self, andSelector: #selector(AppDelegate.getURL(_:_:)), forEventClass: AEEventClass(kInternetEventClass), andEventID: AEEventID(kAEGetURL))
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(feedSettingDidChange(_:)), name: .FeedSettingDidChange, object: nil)
|
||||
|
@ -160,6 +154,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
|
|||
DispatchQueue.main.async {
|
||||
self.unreadCount = AccountManager.shared.unreadCount
|
||||
}
|
||||
|
||||
#if RELEASE
|
||||
DispatchQueue.main.async {
|
||||
self.refreshAll(self)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
|
||||
|
|
Loading…
Reference in New Issue