mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix(plugin): simplify file-explorer open to enable() call
This commit is contained in:
parent
b4632e3205
commit
9af8bbfb28
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue