diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-19 17:12:29 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-19 17:12:31 +0200 |
commit | 5f01ec338e5b3935dd54e2145a3ff1d0c15d7a7f (patch) | |
tree | 678b35120fe4c54fe483221c58ceb7369d9595df | |
parent | yuzu/configuration/configure_audio: Tidy up function cast (diff) | |
download | yuzu-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.cpp | 5 |
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; |