summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-02-14 20:32:07 -0800
committerDentomologist <dentomologist@gmail.com>2026-02-14 20:32:07 -0800
commit0fbe38118e0e133ed2d50128bef47bdcbde2db77 (patch)
tree5dfa8a77a10be46dec704699f53df1e8c93911ca
parentb398dc38e03991814a28952f1cc2af81072cb154 (diff)
CheatsManager: Update code tabs on creation
Call `OnStateChanged` when creating CheatsManager to update the AR and Gecko code tabs with codes for the currently running game (if any). Previously, creating CheatsManager while a game was running wouldn't show any codes until the next time the core state changed (excluding Starting or Stopping which had no effect). Fixes https://bugs.dolphin-emu.org/issues/13977.
-rw-r--r--Source/Core/DolphinQt/CheatsManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/CheatsManager.cpp b/Source/Core/DolphinQt/CheatsManager.cpp
index 5c77c7fb34..5f6e7e2e00 100644
--- a/Source/Core/DolphinQt/CheatsManager.cpp
+++ b/Source/Core/DolphinQt/CheatsManager.cpp
@@ -34,6 +34,8 @@ CheatsManager::CheatsManager(Core::System& system, QWidget* parent)
CreateWidgets();
ConnectWidgets();
+ OnStateChanged(Core::GetState(system));
+
QtUtils::AdjustSizeWithinScreen(this);
auto& settings = Settings::GetQSettings();