1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

The database doesn't always update (if there's no update)

This commit is contained in:
Daniel Barber 2019-03-20 09:00:30 -04:00
parent 8983106cda
commit 79ad585530
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class NotificationsController: MPDClientDelegate {
}
func didUpdateDatabase(mpdClient: MPDClient) {
sendNotification(name: Notification.databaseUpdated)
sendNotification(name: Notification.databaseUpdateFinished)
}
func didUpdateQueue(mpdClient: MPDClient, queue: [MPDClient.Song]) {

View File

@ -46,7 +46,7 @@ class WindowController: NSWindowController {
NotificationCenter.default.addObserver(
self,
selector: #selector(stopDatabaseUpdatingIndicator),
name: Notification.databaseUpdated,
name: Notification.databaseUpdateFinished,
object: AppDelegate.mpdClient
)

View File

@ -15,7 +15,7 @@ extension Notification {
static let stateChanged = Name("MPDClientStateChanged")
static let timeChanged = Name("MPDClientTimeChanged")
static let databaseUpdateStarted = Name("MPDClientDatabaseUpdateStarted")
static let databaseUpdated = Name("MPDClientDatabaseUpdated")
static let databaseUpdateFinished = Name("MPDClientDatabaseUpdateFinished")
static let queueChanged = Name("MPDClientQueueChanged")
static let queuePosChanged = Name("MPDClientQueuePosChanged")
static let loadedAlbums = Name("MPDClientLoadedAlbums")