Skip to content

Commit 05d9113

Browse files
committed
Update mod.rs
1 parent d5a88c0 commit 05d9113

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • whitebox-tools-app/src/tools

whitebox-tools-app/src/tools/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ impl ToolManager {
11961196
.to_str()
11971197
.expect("Error reading path string")
11981198
.to_string();
1199-
if s.to_lowercase().ends_with(".json") {
1199+
if s.to_lowercase().ends_with(".json") && !s.to_lowercase().contains("._") { // no hidden files!
12001200
let contents = fs::read_to_string(s).expect("Something went wrong reading the file");
12011201
let mut v: serde_json::Value = serde_json::from_str(&contents)?;
12021202
v["plugin_directory"] = serde_json::json!(plugin_directory);

0 commit comments

Comments
 (0)