fix: moved contribution popup to the main thread (#2408)

This commit is contained in:
Serhiy Mytrovtsiy
2025-02-21 18:58:58 +01:00
parent 82dc10dfdb
commit 439dcda5da
3 changed files with 5 additions and 3 deletions

View File

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

View File

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