changed comment

This commit is contained in:
Siiiiinth
2026-02-15 18:53:44 +01:00
parent 575c018ca4
commit 9919f59b47
+3 -2
View File
@@ -405,8 +405,9 @@ func (p *PlaybackManager) LoadItems(items []mediaprovider.MediaItem, insertQueue
p.cmdQueue.LoadItems(items, insertQueueMode, shuffle) p.cmdQueue.LoadItems(items, insertQueueMode, shuffle)
} }
// Load items into the currently active queue. (shuffledPlayQueue/playQueue) // Replaces the specified queue (PlayQueue/ShuffledPlayQueue) with the given tracks.
// If replacing the current queue (!appendToQueue), playback will be stopped. // This is used when starting supersonic to load the queue state and directly overrides any previous data.
// For replacing the queue while supersonic is running, use LoadTracks
func (p *PlaybackManager) SetQueueState(tracks []*mediaprovider.Track, queueType QueueType) { func (p *PlaybackManager) SetQueueState(tracks []*mediaprovider.Track, queueType QueueType) {
p.cmdQueue.SetQueueState(tracks, queueType) p.cmdQueue.SetQueueState(tracks, queueType)
} }