change theme menu command

This commit is contained in:
Jan Prochazka
2021-03-25 13:38:06 +01:00
parent e2dcfe9940
commit bc9e8a2ea6
3 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import { getCommands } from '../stores';
import { getCommands, visibleCommandPalette } from '../stores';
import { GlobalCommand } from './registerCommand';
export default function runCommand(id) {
@@ -11,6 +11,8 @@ export default function runCommand(id) {
} else {
if (command.onClick) {
command.onClick();
} else if (command.getSubCommands) {
visibleCommandPalette.set(command);
}
}
}