Merge pull request #13004 from Dentomologist/menubar_update_select_state_slot_on_hotkey
MenuBar: Update checkmarked Select State Slot when hotkeys are pressed
This commit is contained in:
commit
f712ea71f1
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue