mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: moved contribution popup to the main thread (#2408)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>676</string>
|
||||
<string>677</string>
|
||||
<key>Description</key>
|
||||
<string>Simple macOS system monitor in your menu bar</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
||||
@@ -99,7 +99,9 @@ extension AppDelegate {
|
||||
self.supportActivity.interval = 60 * 60 * 24 * 30
|
||||
self.supportActivity.repeats = true
|
||||
self.supportActivity.schedule { (completion: @escaping NSBackgroundActivityScheduler.CompletionHandler) in
|
||||
self.checkIfShouldShowSupportWindow()
|
||||
DispatchQueue.main.async {
|
||||
self.checkIfShouldShowSupportWindow()
|
||||
}
|
||||
completion(NSBackgroundActivityScheduler.Result.finished)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user