Improve import plugin check

This commit is contained in:
luboslenco
2021-01-09 12:51:34 +01:00
parent f0eb8a2c48
commit a8ac284c3d
+1 -1
View File
@@ -443,7 +443,7 @@ class Context {
}
var ext = file.substr(file.lastIndexOf(".") + 1);
for (f in BoxPreferences.filesPlugin) {
if (f.indexOf(ext) >= 0) {
if (f.startsWith("import_") && f.indexOf(ext) >= 0) {
Config.enablePlugin(f);
Log.info(f + " " + tr("plugin enabled"));
return true;