fix: add missing open-settings command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Luca Oelfke 2026-02-13 13:29:33 +01:00
parent d7bc99e0a8
commit b28fc38849

View file

@ -43,6 +43,15 @@ export default class FormfirePlugin extends Plugin {
callback: () => this.activateSidebar(),
});
this.addCommand({
id: 'open-settings',
name: 'Open settings',
callback: () => {
(this.app as any).setting.open();
(this.app as any).setting.openTabById('formfire');
},
});
// Dynamic per-form commands
this.registerDynamicCommands();
}