beginning of work to save queue to server

This commit is contained in:
Drew Weymouth
2024-04-16 17:26:46 -07:00
parent e99c867a39
commit 98a140791b
5 changed files with 39 additions and 7 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ func (a *App) Shutdown() {
a.MPRISHandler.Shutdown()
a.PlaybackManager.DisableCallbacks()
if a.Config.Application.SavePlayQueue {
SavePlayQueue(a.ServerManager.ServerID.String(), a.PlaybackManager, configdir.LocalConfig(a.appName, savedQueueFile))
SavePlayQueue(a.ServerManager.ServerID.String(), a.PlaybackManager, configdir.LocalConfig(a.appName, savedQueueFile), false)
}
a.PlaybackManager.Stop() // will trigger scrobble check
a.Config.LocalPlayback.Volume = a.LocalPlayer.GetVolume()