From a844244450896a6ce4fcdef2eab3204d6f7f563e Mon Sep 17 00:00:00 2001 From: Zsolt Viczian Date: Mon, 13 Dec 2021 18:27:26 +0100 Subject: [PATCH] 1.5.3 multi-selection line edit --- manifest.json | 2 +- src/main.ts | 7 ++++++- versions.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 4f4d81b..f0ce4fb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "1.5.2", + "version": "1.5.3", "minAppVersion": "0.12.16", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", diff --git a/src/main.ts b/src/main.ts index dab45e2..db38e64 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1271,6 +1271,7 @@ export default class ExcalidrawPlugin extends Plugin { private registerEventListeners() { const self = this; this.app.workspace.onLayoutReady(async () => { + //watch filename change to rename .svg, .png; to sync to .md; to update links const renameEventHandler = async ( file: TAbstractFile, @@ -1416,6 +1417,7 @@ export default class ExcalidrawPlugin extends Plugin { } //refresh embedded files } + //https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/300 if(self.popScope) { self.popScope(); @@ -1432,7 +1434,6 @@ export default class ExcalidrawPlugin extends Plugin { self.app.keymap.popScope(scope) }; } - }; self.registerEvent( self.app.workspace.on( @@ -1445,6 +1446,10 @@ export default class ExcalidrawPlugin extends Plugin { onunload() { destroyExcalidrawAutomate(); + if(this.popScope) { + this.popScope(); + this.popScope = null; + } this.observer.disconnect(); this.themeObserver.disconnect(); if (this.fileExplorerObserver) { diff --git a/versions.json b/versions.json index 0197f68..49ea8ff 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,4 @@ { - "1.5.2": "0.12.16", + "1.5.3": "0.12.16", "1.4.2": "0.11.13" }