add command

This commit is contained in:
fyears
2022-01-22 22:19:31 +08:00
parent 13a2d6f53a
commit d9f926e376
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -465,6 +465,15 @@ export default class RemotelySavePlugin extends Plugin {
async () => this.syncRun("manual")
);
this.addCommand({
id: "start-sync",
name: "start sync",
icon: iconNameSyncWait,
callback: async () => {
this.syncRun("manual");
},
});
this.addSettingTab(new RemotelySaveSettingTab(this.app, this));
// this.registerDomEvent(document, "click", (evt: MouseEvent) => {