Use appDelegate’s coalescing queue to update toolbar items.
This commit is contained in:
parent
4e7fc8efcb
commit
b3ea268807
|
@ -120,7 +120,7 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
|||
|
||||
@objc func refreshProgressDidChange(_ note: Notification) {
|
||||
|
||||
performSelectorCoalesced(#selector(MainWindowController.makeToolbarValidate(_:)), with: nil, delay: 0.1)
|
||||
appDelegate?.coalescingQueue.add(self, #selector(makeToolbarValidate))
|
||||
}
|
||||
|
||||
@objc func unreadCountDidChange(_ note: Notification) {
|
||||
|
|
Loading…
Reference in New Issue