From 72c158e08bb1ef1ab3a36bc86f59f2f7b9af2877 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Fri, 23 Jul 2021 19:13:52 +0200 Subject: [PATCH] save.settings --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 214b365..980c489 100644 --- a/src/main.ts +++ b/src/main.ts @@ -113,7 +113,7 @@ export default class ExcalidrawPlugin extends Plugin { const self = this; this.app.workspace.onLayoutReady(async () => { self.settings.loadCount++; - //self.saveSettings(); + self.saveSettings(); const files = this.app.vault.getFiles().filter((f)=>f.extension=="excalidraw"); if(files.length>0) { const prompt = new MigrationPrompt(self.app, self); @@ -870,7 +870,7 @@ export default class ExcalidrawPlugin extends Plugin { } this.settings.drawingOpenCount += this.opencount; this.settings.loadCount++; - this.saveSettings(); + //this.saveSettings(); } self.registerEvent( self.app.workspace.on("quit",quitEventHandler) @@ -907,7 +907,7 @@ export default class ExcalidrawPlugin extends Plugin { }); this.settings.drawingOpenCount += this.opencount; this.settings.loadCount++; - this.saveSettings(); + //this.saveSettings(); } public embedDrawing(data:string) { @@ -1059,4 +1059,4 @@ export default class ExcalidrawPlugin extends Plugin { if(folder && folder instanceof TFolder) return; await this.app.vault.createFolder(folderpath); } -} \ No newline at end of file +}