plugins: don't warn for directories without a manifest

fixes #3112
This commit is contained in:
bbedward
2026-08-28 10:17:26 -04:00
parent 3604fc83a2
commit 54a64eb0b2
+5 -3
View File
@@ -76,7 +76,7 @@ Singleton {
Process {
id: directoryCheckProcess
command: ["test", "-d", root.pluginDirectory]
onExited: (exitCode) => {
onExited: exitCode => {
root.pluginDirectoryExists = (exitCode === 0);
}
}
@@ -210,7 +210,9 @@ Singleton {
fv.destroy();
}
onLoadFailed: err => {
root.log.warn("manifest load failed", absPath, err);
// a directory without plugin.json is not a plugin, not a failed one (#3112)
if (err !== FileViewError.FileNotFound)
root.log.warn("manifest load failed", absPath, err);
fv.destroy();
}
}
@@ -1198,7 +1200,7 @@ Singleton {
return result;
}
readonly property string _ipcIdPattern: "^[a-zA-Z0-9_\\-:]{1,64}$";
readonly property string _ipcIdPattern: "^[a-zA-Z0-9_\\-:]{1,64}$"
IpcHandler {
target: "plugin-scan"