From b3ea268807e04320ed2632f45d172430ae8cc21e Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 17 Feb 2018 15:20:07 -0800 Subject: [PATCH] =?UTF-8?q?Use=20appDelegate=E2=80=99s=20coalescing=20queu?= =?UTF-8?q?e=20to=20update=20toolbar=20items.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Evergreen/MainWindow/MainWindowController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Evergreen/MainWindow/MainWindowController.swift b/Evergreen/MainWindow/MainWindowController.swift index 1d2751054..28a2b7195 100644 --- a/Evergreen/MainWindow/MainWindowController.swift +++ b/Evergreen/MainWindow/MainWindowController.swift @@ -119,8 +119,8 @@ 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) {