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:
parent
8983106cda
commit
79ad585530
@ -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]) {
|
||||
|
||||
@ -46,7 +46,7 @@ class WindowController: NSWindowController {
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(stopDatabaseUpdatingIndicator),
|
||||
name: Notification.databaseUpdated,
|
||||
name: Notification.databaseUpdateFinished,
|
||||
object: AppDelegate.mpdClient
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user