group commands

This commit is contained in:
Jan Prochazka
2021-03-15 21:06:15 +01:00
parent d4a35fb414
commit 321d5d71de
9 changed files with 49 additions and 28 deletions

View File

@@ -30,6 +30,9 @@ export default async function invalidateCommands() {
if (!command.isGroupCommand) continue;
const groupSources = values.filter(x => x.group == command.group && !x.isGroupCommand && x.enabled);
command.enabled = groupSources.length > 0;
for(const source of groupSources) {
source.keyTextFromGroup = command.keyText;
}
}
}
return res || dct;