mirror of
https://github.com/laurent22/joplin.git
synced 2025-02-13 19:42:36 +02:00
Desktop: Fixes #5421: Exclude disabled commands from Goto Anything
This commit is contained in:
parent
5a9bc1297b
commit
23996e0efe
@ -124,9 +124,12 @@ export default class CommandService extends BaseService {
|
|||||||
|
|
||||||
const output = [];
|
const output = [];
|
||||||
|
|
||||||
|
const whenClauseContext = this.currentWhenClauseContext();
|
||||||
|
|
||||||
for (const commandName of this.commandNames()) {
|
for (const commandName of this.commandNames()) {
|
||||||
const label = this.label(commandName, true);
|
const label = this.label(commandName, true);
|
||||||
if (!label && excludeWithoutLabel) continue;
|
if (!label && excludeWithoutLabel) continue;
|
||||||
|
if (!this.isEnabled(commandName, whenClauseContext)) continue;
|
||||||
|
|
||||||
const title = label ? `${label} (${commandName})` : commandName;
|
const title = label ? `${label} (${commandName})` : commandName;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user