MainWindow - Avoid excessive emulation state changes

Updates the Hardcore Changed callback to only signal EmulationStateChanged if the new Hardcore Mode setting is different from the previous one.
This commit is contained in:
LillyJadeKatrin
2025-06-09 06:02:35 -04:00
parent 5064b615ba
commit 417badc55c
2 changed files with 8 additions and 2 deletions

View File

@ -267,6 +267,7 @@ private:
#ifdef USE_RETRO_ACHIEVEMENTS
AchievementsWindow* m_achievements_window = nullptr;
Config::ConfigChangedCallbackID m_config_changed_callback_id;
bool m_former_hardcore_setting = false;
#endif // USE_RETRO_ACHIEVEMENTS
AssemblerWidget* m_assembler_widget;