diff --git a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp index c3bbd350f8..6f003dab44 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp @@ -236,7 +236,10 @@ void AchievementSettingsWidget::ToggleRAIntegration() else instance.Shutdown(); if (Config::Get(Config::RA_HARDCORE_ENABLED)) + { emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance())); + emit Settings::Instance().HardcoreStateChanged(); + } } void AchievementSettingsWidget::Login() @@ -266,6 +269,7 @@ void AchievementSettingsWidget::ToggleHardcore() Settings::Instance().SetDebugModeEnabled(false); } emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance())); + emit Settings::Instance().HardcoreStateChanged(); } void AchievementSettingsWidget::ToggleUnofficial() diff --git a/Source/Core/DolphinQt/Achievements/AchievementsWindow.cpp b/Source/Core/DolphinQt/Achievements/AchievementsWindow.cpp index b796b9dc3e..a0e750c4ba 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementsWindow.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementsWindow.cpp @@ -34,6 +34,8 @@ AchievementsWindow::AchievementsWindow(QWidget* parent) : QDialog(parent) }); }); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, + [this] { m_settings_widget->UpdateData(); }); + connect(&Settings::Instance(), &Settings::HardcoreStateChanged, this, [this] { AchievementsWindow::UpdateData({.all = true}); }); } diff --git a/Source/Core/DolphinQt/Settings.h b/Source/Core/DolphinQt/Settings.h index a99e8c7dca..c1dae424fc 100644 --- a/Source/Core/DolphinQt/Settings.h +++ b/Source/Core/DolphinQt/Settings.h @@ -223,6 +223,7 @@ signals: void SDCardInsertionChanged(bool inserted); void USBKeyboardConnectionChanged(bool connected); void EnableGfxModsChanged(bool enabled); + void HardcoreStateChanged(); private: Settings();