@@ -99,8 +99,9 @@ SettingsFragment::SettingsFragment(TrayIcon *trayIcon,
9999 * Audio processing
100100 */
101101 connect (ui->benchmarkOnBoot , &QCheckBox::clicked, this , &SettingsFragment::onBenchmarkOnBootToggled);
102- connect (ui->benchmarkNow , &QCheckBox::clicked, this , &SettingsFragment::onBenchmarkRunClicked);
103- connect (ui->benchmarkClear , &QCheckBox::clicked, this , &SettingsFragment::onBenchmarkClearClicked);
102+ connect (ui->benchmarkNow , &QPushButton::clicked, this , &SettingsFragment::onBenchmarkRunClicked);
103+ connect (ui->benchmarkClear , &QPushButton::clicked, this , &SettingsFragment::onBenchmarkClearClicked);
104+ connect (ui->sinkAllowVolumeControl , &QCheckBox::clicked, this , &SettingsFragment::onSinkAllowVolumeControlClicked);
104105 connect (_audioService, &IAudioService::benchmarkDone, this , [this ]{ updateBenchmarkStatus (tr (" benchmark data loaded" )); });
105106
106107 /*
@@ -267,6 +268,7 @@ void SettingsFragment::refreshAll()
267268 ui->eq_alwaysdrawhandles ->setChecked (AppConfig::instance ().get <bool >(AppConfig::EqualizerShowHandles));
268269
269270 ui->benchmarkOnBoot ->setChecked (AppConfig::instance ().get <bool >(AppConfig::BenchmarkOnBoot));
271+ ui->sinkAllowVolumeControl ->setChecked (!AppConfig::instance ().get <bool >(AppConfig::AudioVirtualSinkForceMaxValue));
270272
271273 ui->blocklistInvert ->blockSignals (true );
272274 ui->blocklistInvert ->setChecked (AppConfig::instance ().get <bool >(AppConfig::AudioAppBlocklistInvert));
@@ -460,6 +462,11 @@ void SettingsFragment::onBenchmarkClearClicked()
460462 updateBenchmarkStatus (tr (" no benchmark data stored" ));
461463}
462464
465+ void SettingsFragment::onSinkAllowVolumeControlClicked ()
466+ {
467+ AppConfig::instance ().set (AppConfig::AudioVirtualSinkForceMaxValue, !ui->sinkAllowVolumeControl ->isChecked ());
468+ }
469+
463470void SettingsFragment::onLiveprogAutoExtractToggled ()
464471{
465472 AppConfig::instance ().set (AppConfig::LiveprogAutoExtract, ui->liveprog_autoextract ->isChecked ());
0 commit comments