summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-08-14 02:27:36 +0100
committerGitHub <noreply@github.com>2024-08-14 02:27:36 +0100
commitf712ea71f1c598f06d7f50eb243e656a6ba2ad95 (patch)
tree3e464252818f3fdffe0d78502ac1af88b4ee9612 /Source/Core
parentd4ec524f218f83bf3646f0dd666236307a727bc5 (diff)
parent134313e313edb27c7bc054a5a53d29744e0cf27c (diff)
Merge pull request #13004 from Dentomologist/menubar_update_select_state_slot_on_hotkey
MenuBar: Update checkmarked Select State Slot when hotkeys are pressed
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index b7dac7c918..b6e722fa7f 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -408,6 +408,10 @@ void MenuBar::AddStateSlotMenu(QMenu* emu_menu)
action->setChecked(true);
connect(action, &QAction::triggered, this, [=, this]() { emit SetStateSlot(i); });
+ connect(this, &MenuBar::SetStateSlot, [action, i](const int slot) {
+ if (slot == i)
+ action->setChecked(true);
+ });
}
}