From 9af8bbfb28a00a4aeefbe22ed449db775f04af3c Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Thu, 14 May 2026 01:38:06 +0800 Subject: [PATCH] fix(plugin): simplify file-explorer open to enable() call --- paperforge/plugin/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paperforge/plugin/main.js b/paperforge/plugin/main.js index a607780d..5a26ea99 100644 --- a/paperforge/plugin/main.js +++ b/paperforge/plugin/main.js @@ -1535,8 +1535,7 @@ class PaperForgeStatusView extends ItemView { const baseDir = plugin?.settings?.base_dir || 'Bases'; const baseFile = this.app.vault.getAbstractFileByPath(baseDir); if (baseFile) { - const explorer = this.app.internalPlugins.getPluginById('file-explorer'); - if (explorer) explorer.toggle(true); + this.app.internalPlugins.getPluginById('file-explorer')?.enable?.(true); } else { new Notice('[!!] Base directory not found: ' + baseDir, 6000); }