Signed-off-by: Hadi <hadi@example.com>
This commit is contained in:
Hadi
2026-05-29 13:41:09 +02:00
parent 677223c9b0
commit 61a112a302
6 changed files with 19 additions and 6 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
package plugins
import (
"log"
"os"
"path/filepath"
@@ -76,7 +77,9 @@ func (pf *PluginsFile) register(id string, defaultEnabled bool, configText strin
}
}
pf.data.Plugins[id] = entry
_ = pf.save()
if err := pf.save(); err != nil {
log.Printf("plugin %s: register save: %v", id, err)
}
}
}