diff --git a/manifest.json b/manifest.json index 892971a..c3ea5f4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "excalibrain", "name": "ExcaliBrain", - "version": "0.2.13", + "version": "0.2.14", "minAppVersion": "1.1.6", "description": "A clean, intuitive and editable graph view for Obsidian", "author": "Zsolt Viczian", diff --git a/src/excalibrain-main.ts b/src/excalibrain-main.ts index 7eb2880..4adb773 100644 --- a/src/excalibrain-main.ts +++ b/src/excalibrain-main.ts @@ -639,13 +639,10 @@ export default class ExcaliBrain extends Plugin { (async()=>{ const source = page.getParents()[0] ?? page.getLeftFriends()[0] ?? page.getRightFriends()[0] ?? page.getChildren()[0]; const f = await ea.newFilePrompt(page.path, false, undefined, source?.page.file); + if(!f) return; page.file = f; - if(isEmbedFileType(f,ea)) { - this.scene.renderGraphForPath(path); - } else { - this.scene.renderGraphForPath(path,false); - return true; - } + await this.scene.renderGraphForPath(path); + await this.scene.reRender(true); })(); } return false;