add settings dialog radio for saving queue locally or to server

This commit is contained in:
Drew Weymouth
2024-04-16 18:13:22 -07:00
parent 8eeb2aa53a
commit 63b0ab7374
4 changed files with 39 additions and 7 deletions
+3
View File
@@ -3,6 +3,7 @@ package backend
import (
"encoding/json"
"errors"
"log"
"os"
"github.com/dweymouth/supersonic/backend/mediaprovider"
@@ -64,6 +65,8 @@ func LoadPlayQueue(filepath string, sm *ServerManager, loadFromServer bool) (*Sa
TrackIndex: queue.TrackPos,
TimePos: float64(queue.TimePos),
}, nil
} else {
log.Printf("error loading queue from server: %v", err.Error())
}
}