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