summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-19 17:12:29 +0200
committerLioncash <mathew1800@gmail.com>2019-05-19 17:12:31 +0200
commit5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f (patch)
tree678b35120fe4c54fe483221c58ceb7369d9595df
parentyuzu/configuration/configure_audio: Tidy up function cast (diff)
downloadyuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.tar
yuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.tar.gz
yuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.tar.bz2
yuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.tar.lz
yuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.tar.xz
yuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.tar.zst
yuzu-5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f.zip
-rw-r--r--src/yuzu/configuration/configure_audio.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp
index e68309bb2..b0f9b814d 100644
--- a/src/yuzu/configuration/configure_audio.cpp
+++ b/src/yuzu/configuration/configure_audio.cpp
@@ -28,8 +28,9 @@ ConfigureAudio::ConfigureAudio(QWidget* parent)
connect(ui->output_sink_combo_box, qOverload<int>(&QComboBox::currentIndexChanged), this,
&ConfigureAudio::updateAudioDevices);
- ui->output_sink_combo_box->setEnabled(!Core::System::GetInstance().IsPoweredOn());
- ui->audio_device_combo_box->setEnabled(!Core::System::GetInstance().IsPoweredOn());
+ const bool is_powered_on = Core::System::GetInstance().IsPoweredOn();
+ ui->output_sink_combo_box->setEnabled(!is_powered_on);
+ ui->audio_device_combo_box->setEnabled(!is_powered_on);
}
ConfigureAudio::~ConfigureAudio() = default;