From 4e8a892a17d33ffcb664c746a5b153230aecb341 Mon Sep 17 00:00:00 2001 From: Zachatoo Date: Mon, 27 Jan 2025 21:17:09 -0700 Subject: [PATCH] fix: Duplicate hotkeys being created when updating template hotkeys refs: #1515 --- src/handlers/CommandHandler.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/handlers/CommandHandler.ts b/src/handlers/CommandHandler.ts index 7d98c47..7752c63 100644 --- a/src/handlers/CommandHandler.ts +++ b/src/handlers/CommandHandler.ts @@ -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}`); } } }