mirror of
https://github.com/unarray/file-tree-generator.git
synced 2026-07-22 08:40:29 +00:00
Register settings tab
This commit is contained in:
parent
df6964a56c
commit
ddbd0cb55e
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { GenerateTree } from "#/commands/GenerateTree";
|
||||
import { SettingsTab } from "#/settings";
|
||||
import type { App, Command, PluginManifest } from "obsidian";
|
||||
import { Plugin } from "obsidian";
|
||||
|
||||
|
|
@ -20,11 +21,16 @@ export default class FileTreeGenerator extends Plugin {
|
|||
}
|
||||
|
||||
|
||||
onload(): void {
|
||||
onload = async(): Promise<void> => {
|
||||
this.addCommands(
|
||||
new GenerateTree()
|
||||
);
|
||||
}
|
||||
|
||||
const settingsTab = new SettingsTab(this);
|
||||
|
||||
await settingsTab.loadSettings();
|
||||
this.addSettingTab(settingsTab);
|
||||
};
|
||||
|
||||
public addCommands = (...commands: Command[]): void => {
|
||||
for (const command of commands) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue