Fixed a bug where updating the transport wouldn't take effect until an app restart.

This commit is contained in:
casey langen 2021-03-18 21:35:02 -07:00
parent 672a5fdb45
commit 05bef79366

View File

@ -454,8 +454,8 @@ void PlaybackService::ProcessMessage(IMessage &message) {
if (masterTransport) {
const TransportType transportType = static_cast<TransportType>(
playbackPrefs->GetInt(
keys::Transport.c_str()),
static_cast<int>(TransportType::Gapless));
keys::Transport,
static_cast<int>(TransportType::Gapless)));
if (masterTransport->GetType() != transportType) {
masterTransport->SwitchTo(transportType);