Skip to content

Commit 4e8a892

Browse files
committed
fix: Duplicate hotkeys being created when updating template hotkeys
refs: #1515
1 parent 9211777 commit 4e8a892

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/handlers/CommandHandler.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ export class CommandHandler {
123123

124124
remove_template_hotkey(template: string | null): void {
125125
if (template) {
126-
this.plugin.removeCommand(
127-
`${this.plugin.manifest.id}:create-${template}`
128-
);
129-
this.plugin.removeCommand(`${this.plugin.manifest.id}:${template}`);
126+
this.plugin.removeCommand(`${template}`);
127+
this.plugin.removeCommand(`create-${template}`);
130128
}
131129
}
132130
}

0 commit comments

Comments
 (0)