summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
diff options
context:
space:
mode:
authorOatmealDome <OatmealDome@users.noreply.github.com>2024-06-26 18:40:56 -0400
committerGitHub <noreply@github.com>2024-06-26 18:40:56 -0400
commit134c079ad2558a5ef9bad404903c51d84526a51c (patch)
tree6b7cfcbf4ad79b125db6aa96c83a7d022b514c34 /Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
parent3dbaf38eae8415f6ed8420ab36b49358c39cf3eb (diff)
parentbc67fc97c39628c76a4dbca411b0e8a9bfaf726a (diff)
Merge pull request #12893 from JosJuice/revert-audit-get-state
Revert "Audit uses of IsRunning and GetState"
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
index 3574e6893a..52f09a6f41 100644
--- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
+++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
@@ -44,7 +44,8 @@ GeneralWidget::GeneralWidget(GraphicsWindow* parent)
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
OnEmulationStateChanged(state != Core::State::Uninitialized);
});
- OnEmulationStateChanged(!Core::IsUninitialized(Core::System::GetInstance()));
+ OnEmulationStateChanged(Core::GetState(Core::System::GetInstance()) !=
+ Core::State::Uninitialized);
}
void GeneralWidget::CreateWidgets()
@@ -360,8 +361,7 @@ void GeneralWidget::OnBackendChanged(const QString& backend_name)
const bool supports_adapters = !adapters.empty();
m_adapter_combo->setCurrentIndex(g_Config.iAdapter);
- m_adapter_combo->setEnabled(supports_adapters &&
- Core::IsUninitialized(Core::System::GetInstance()));
+ m_adapter_combo->setEnabled(supports_adapters && !Core::IsRunning(Core::System::GetInstance()));
static constexpr char TR_ADAPTER_AVAILABLE_DESCRIPTION[] =
QT_TR_NOOP("Selects a hardware adapter to use.<br><br>"