From 489ef7c51c7d33eeba6d6a66b6697f52441ddf45 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 2 Mar 2023 20:50:37 +0000 Subject: [PATCH] add toggle group lock --- src/managers/KeybindManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index f97347f6..0dadcddd 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -2059,6 +2059,8 @@ void CKeybindManager::fakeFullscreenActive(std::string args) { void CKeybindManager::lockGroups(std::string args) { if (args == "lock" || args.empty() || args == "lockgroups") { g_pKeybindManager->m_bGroupsLocked = true; + } else if (args == "toggle") { + g_pKeybindManager->m_bGroupsLocked = !g_pKeybindManager->m_bGroupsLocked; } else { g_pKeybindManager->m_bGroupsLocked = false; }