From 0fbe38118e0e133ed2d50128bef47bdcbde2db77 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sat, 14 Feb 2026 20:32:07 -0800 Subject: [PATCH] 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. --- Source/Core/DolphinQt/CheatsManager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();