load saved play position on startup

This commit is contained in:
Drew Weymouth
2024-01-07 17:14:57 -08:00
parent fe41781df4
commit 793b570999
2 changed files with 20 additions and 4 deletions
+5 -3
View File
@@ -142,9 +142,11 @@ func (m *MainWindow) RunOnServerConnectedTasks(app *backend.App, displayAppName
m.BottomPanel.NowPlaying.DisableRating = !canRate
if app.Config.Application.SavePlayQueue {
if err := app.LoadSavedPlayQueue(); err != nil {
log.Printf("failed to load saved play queue: %s", err.Error())
}
go func() {
if err := app.LoadSavedPlayQueue(); err != nil {
log.Printf("failed to load saved play queue: %s", err.Error())
}
}()
}
// check if launching new version, else if found available update on startup