fix: reinstall missing plugin folders with enableAfterInstall honored
Tatortreiniger / tatort-reinigen (release) Has been cancelled

When a managed plugin's folder was empty/missing at update time, BRAT
reinstalled it via updatePlugin(), which hard-codes enableAfterInstall=false,
so the plugin came back on disk but stayed disabled until toggled by hand.
Detect absence with adapter.exists() (the errno check was desktop-only) and
pass the user's enableAfterInstall setting to the fresh install.
This commit is contained in:
olivier committed 2026-10-05 09:48:10 -04:00
1 parent f69790c2f9
commit 91247d31e2
3 files changed
+20 -22

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "obsidian42-brat-gitea",
"version": "1.0.1",
"version": "1.0.2",
"description": "BRAT fork with Gitea support — install beta plugins from GitHub or self-hosted Gitea/Forgejo.",
"main": "main.js",
"scripts": {