Skip to content

Commit

Permalink
fix: Duplicate hotkeys being created when updating template hotkeys
Browse files Browse the repository at this point in the history
refs: #1515
  • Loading branch information
Zachatoo committed Jan 28, 2025
1 parent 9211777 commit 4e8a892
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/handlers/CommandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,8 @@ export class CommandHandler {

remove_template_hotkey(template: string | null): void {
if (template) {
this.plugin.removeCommand(
`${this.plugin.manifest.id}:create-${template}`
);
this.plugin.removeCommand(`${this.plugin.manifest.id}:${template}`);
this.plugin.removeCommand(`${template}`);
this.plugin.removeCommand(`create-${template}`);
}
}
}

0 comments on commit 4e8a892

Please sign in to comment.