From 12288a2622caf8af30a3feb04150c14ce87063d8 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 20 Feb 2024 01:22:40 +0100 Subject: [PATCH] BackendSettingsPage: Fix enabling/disabling exclusive mode --- src/settings/backendsettingspage.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/settings/backendsettingspage.cpp b/src/settings/backendsettingspage.cpp index 29103bb9b..ecafea012 100644 --- a/src/settings/backendsettingspage.cpp +++ b/src/settings/backendsettingspage.cpp @@ -341,12 +341,12 @@ void BackendSettingsPage::Load_Output(QString output, QVariant device) { ui_->groupbox_ebur128->setEnabled(false); } - if (ui_->combobox_output->count() >= 1) Load_Device(output, device); - #ifdef Q_OS_WIN32 ui_->widget_exclusive_mode->setEnabled(engine()->ExclusiveModeSupport(output)); #endif + if (ui_->combobox_output->count() >= 1) Load_Device(output, device); + FadingOptionsChanged(); } @@ -568,6 +568,11 @@ void BackendSettingsPage::OutputChanged(const int index) { if (!configloaded_ || !EngineInitialized()) return; EngineBase::OutputDetails output = ui_->combobox_output->itemData(index).value(); + +#ifdef Q_OS_WIN32 + ui_->widget_exclusive_mode->setEnabled(engine()->ExclusiveModeSupport(output.name)); +#endif + Load_Device(output.name, QVariant()); }