Browse Source

MOS-20 Force uninstallMenuExtra function runs on main thread.

MOS-20
David Alarcon 1 year ago
parent
commit
e5c69c23b5
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      Submodules/pEpNotifications/pEpNotifications/AppDelegate.swift

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

@ -287,7 +287,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("pEpNotifications: actionButtonClicked for %@", filename)
NSWorkspace.shared.openFile(filename)
@ -314,7 +318,10 @@ extension AppDelegate: NSXPCListenerDelegate {
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("pEpNotifications: actionButtonClicked for %@", product.filename)


Loading…
Cancel
Save