Keep track of refresh beginning and finishing. Validate the refreshAll command (menu, toolbar).

This commit is contained in:
Brent Simmons
2017-10-07 14:40:14 -07:00
parent ea63f5e343
commit 5d8aa94dc3
7 changed files with 65 additions and 16 deletions

View File

@@ -8,6 +8,7 @@
import Cocoa
import Data
import Account
private let kWindowFrameKey = "MainWindow"
@@ -29,7 +30,8 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
NotificationCenter.default.addObserver(self, selector: #selector(appNavigationKeyPressed(_:)), name: .AppNavigationKeyPressed, object: nil)
// NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshProgressDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidBegin, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidFinish, object: nil)
}
// MARK: Notifications