diff options
| author | Tilka <tilkax@gmail.com> | 2024-08-14 02:27:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 02:27:36 +0100 |
| commit | f712ea71f1c598f06d7f50eb243e656a6ba2ad95 (patch) | |
| tree | 3e464252818f3fdffe0d78502ac1af88b4ee9612 /Source/Core | |
| parent | d4ec524f218f83bf3646f0dd666236307a727bc5 (diff) | |
| parent | 134313e313edb27c7bc054a5a53d29744e0cf27c (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.cpp | 4 |
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); + }); } } |
