diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-06-22 20:20:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 20:20:54 +0200 |
| commit | 9b33b777cfd26cf790a4fdf1f1d305b24c6777f7 (patch) | |
| tree | f20ed4143c13e26bc9c15767bb434a3a5985090b /Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | |
| parent | 3e0bd82f8158c5551bfa133fbef86bd65b714132 (diff) | |
| parent | 72cf2bdb87f09deff22e1085de3290126aa4ad05 (diff) | |
Merge pull request #12828 from JosJuice/unify-state-variables-2
Clean up Core::GetState
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 6 |
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 52f09a6f41..3574e6893a 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -44,8 +44,7 @@ GeneralWidget::GeneralWidget(GraphicsWindow* parent) connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); }); - OnEmulationStateChanged(Core::GetState(Core::System::GetInstance()) != - Core::State::Uninitialized); + OnEmulationStateChanged(!Core::IsUninitialized(Core::System::GetInstance())); } void GeneralWidget::CreateWidgets() @@ -361,7 +360,8 @@ 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::IsRunning(Core::System::GetInstance())); + m_adapter_combo->setEnabled(supports_adapters && + Core::IsUninitialized(Core::System::GetInstance())); static constexpr char TR_ADAPTER_AVAILABLE_DESCRIPTION[] = QT_TR_NOOP("Selects a hardware adapter to use.<br><br>" |
