add toggle group lock

This commit is contained in:
vaxerski 2023-03-02 20:50:37 +00:00
parent 34685a836a
commit 489ef7c51c

View file

@ -2059,6 +2059,8 @@ void CKeybindManager::fakeFullscreenActive(std::string args) {
void CKeybindManager::lockGroups(std::string args) { void CKeybindManager::lockGroups(std::string args) {
if (args == "lock" || args.empty() || args == "lockgroups") { if (args == "lock" || args.empty() || args == "lockgroups") {
g_pKeybindManager->m_bGroupsLocked = true; g_pKeybindManager->m_bGroupsLocked = true;
} else if (args == "toggle") {
g_pKeybindManager->m_bGroupsLocked = !g_pKeybindManager->m_bGroupsLocked;
} else { } else {
g_pKeybindManager->m_bGroupsLocked = false; g_pKeybindManager->m_bGroupsLocked = false;
} }