Browse Source

MOS-20 Force notify to run at main queue.

MOS-20
David Alarcon 1 year ago
parent
commit
b13cd75945
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      Submodules/pEpNotifications/pEpNotifications/DownloadStateNotifier.swift

+ 5
- 3
Submodules/pEpNotifications/pEpNotifications/DownloadStateNotifier.swift View File

@ -26,9 +26,11 @@ struct DownloadStateNotifier {
}
func notify(_ state: DownloadState, with product: Product? = nil) {
menuItem.title = state.localizedString()
menuItem.isEnabled = (product != nil)
menuItem.representedObject = product
DispatchQueue.main.async {
menuItem.title = state.localizedString()
menuItem.isEnabled = (product != nil)
menuItem.representedObject = product
}
}
}


Loading…
Cancel
Save