Fix #579: Save play queue on all queue changes

This commit is contained in:
Drew Weymouth
2025-10-09 08:13:56 -07:00
parent 7b8af7b952
commit 887d3bb2c7
16 changed files with 22 additions and 15 deletions
+7
View File
@@ -188,6 +188,13 @@ func StartupApp(appName, displayAppName, appVersion, appVersionTag, latestReleas
SetSystemSleepDisabled(false)
})
a.PlaybackManager.OnQueueChange(func() {
go a.SavePlayQueueIfEnabled()
})
a.PlaybackManager.OnSongChange(func(_ mediaprovider.MediaItem, _ *mediaprovider.Track) {
go a.SavePlayQueueIfEnabled()
})
// Start IPC server if another not already running in a different instance
if cli == nil {
ipc.DestroyConn() // cleanup socket possibly orphaned by crashed process