globalshortcuts: allow empty appid

This commit is contained in:
vaxerski 2023-09-02 19:32:05 +02:00
parent f69c5469d7
commit 1ecfb5e852

View file

@ -2097,7 +2097,7 @@ void CKeybindManager::global(std::string args) {
const auto APPID = args.substr(0, args.find_first_of(':'));
const auto NAME = args.substr(args.find_first_of(':') + 1);
if (APPID.empty() || NAME.empty())
if (NAME.empty())
return;
if (!g_pProtocolManager->m_pGlobalShortcutsProtocolManager->globalShortcutExists(APPID, NAME))