Persist adjusted volume (#2997)

Co-authored-by: Deluan Quintão <deluan@navidrome.org>
This commit is contained in:
Matthias Schmidt 2024-05-08 01:21:35 +02:00 committed by GitHub
parent 4d29184998
commit b3d70e9264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,5 +288,6 @@ func (pd *playbackDevice) switchActiveTrackByIndex(index int) error {
return err return err
} }
pd.ActiveTrack = track pd.ActiveTrack = track
pd.ActiveTrack.SetVolume(pd.Gain)
return nil return nil
} }