fix: fixed app hang on CPU and RAM popup, 10.13 only (#721, #640)

This commit is contained in:
Serhiy Mytrovtsiy
2021-11-28 14:23:27 +01:00
parent edd3d97917
commit 1edeb6385c

View File

@@ -41,9 +41,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
private let updateActivity = NSBackgroundActivityScheduler(identifier: "eu.exelban.Stats.updateCheck")
static func main() {
let app = NSApplication.shared
let delegate = AppDelegate()
NSApplication.shared.delegate = delegate
NSApplication.shared.run()
app.delegate = delegate
app.run()
}
func applicationDidFinishLaunching(_ aNotification: Notification) {