diff options
| author | Dentomologist <dentomologist@gmail.com> | 2026-02-14 20:32:07 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2026-02-14 20:32:07 -0800 |
| commit | 0fbe38118e0e133ed2d50128bef47bdcbde2db77 (patch) | |
| tree | 5dfa8a77a10be46dec704699f53df1e8c93911ca | |
| parent | b398dc38e03991814a28952f1cc2af81072cb154 (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.cpp | 2 |
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(); |
