Browse Source

MOS-20 Force uninstallMenuExtra function runs on main thread.

master
David Alarcon 2 months ago
parent
commit
e59db7cc57
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      Submodules/pEpNotifications/PEPUpdatesApp/AppDelegate.swift

+ 9
- 2
Submodules/pEpNotifications/PEPUpdatesApp/AppDelegate.swift View File

@ -270,7 +270,11 @@ extension AppDelegate: NSUserNotificationCenterDelegate {
return
}
uninstallMenuExtra()
DispatchQueue.main.async { [weak self] in
guard let me = self else { return }
me.uninstallMenuExtra()
}
let filename : String = didActivate.userInfo?["filename"] as! String
NSLog("pEpUpdates: actionButtonClicked for %@", filename)
NSWorkspace.shared.openFile(filename)
@ -283,7 +287,10 @@ extension AppDelegate: NSUserNotificationCenterDelegate {
extension AppDelegate: DownloadNotificationManagerDelegate {
func installSelected(with product: Product) {
defer {
uninstallMenuExtra()
DispatchQueue.main.async { [weak self] in
guard let me = self else { return }
me.uninstallMenuExtra()
}
}
NSLog("pEpUpdates: actionButtonClicked for %@", product.filename)


Loading…
Cancel
Save