From 30158975b6f15160a7f3a0ec2cb5550d8d5d596b Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 30 Sep 2019 00:25:56 +0200 Subject: [PATCH] Ref T731, correctly set "disable VHF simulation" checkbox --- src/blackgui/components/audiodevicevolumesetupcomponent.cpp | 5 +++-- src/blackmisc/audio/audiosettings.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/blackgui/components/audiodevicevolumesetupcomponent.cpp b/src/blackgui/components/audiodevicevolumesetupcomponent.cpp index 16bac70f1..d14fe51bf 100644 --- a/src/blackgui/components/audiodevicevolumesetupcomponent.cpp +++ b/src/blackgui/components/audiodevicevolumesetupcomponent.cpp @@ -61,6 +61,8 @@ namespace BlackGui const int o = this->getOutValue(); ui->hs_VolumeIn->setValue(i); ui->hs_VolumeOut->setValue(o); + ui->cb_SetupAudioLoopback->setChecked(false); + ui->cb_DisableAudioEffects->setChecked(!as.isAudioEffectsEnabled()); // deferred init, because in a distributed swift system // it takes a moment until the settings are sychronized @@ -205,8 +207,7 @@ namespace BlackGui void CAudioDeviceVolumeSetupComponent::reloadSettings() { const CSettings as(m_audioSettings.getThreadLocal()); - ui->cb_DisableAudioEffects->setChecked(as.isAudioEffectsEnabled()); - + ui->cb_DisableAudioEffects->setChecked(!as.isAudioEffectsEnabled()); this->setInValue(as.getInVolume()); this->setOutValue(as.getInVolume()); } diff --git a/src/blackmisc/audio/audiosettings.h b/src/blackmisc/audio/audiosettings.h index 322a1eb21..db7adc111 100644 --- a/src/blackmisc/audio/audiosettings.h +++ b/src/blackmisc/audio/audiosettings.h @@ -128,7 +128,8 @@ namespace BlackMisc BLACK_METAMEMBER(notification), BLACK_METAMEMBER(notificationVolume), BLACK_METAMEMBER(outVolume), - BLACK_METAMEMBER(inVolume) + BLACK_METAMEMBER(inVolume), + BLACK_METAMEMBER(audioEffects) ); };