Use appDelegate’s coalescing queue to update toolbar items.

This commit is contained in:
Brent Simmons 2018-02-17 15:20:07 -08:00
parent 4e7fc8efcb
commit b3ea268807
1 changed files with 2 additions and 2 deletions

View File

@ -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) {