Skip to content

Commit cd69648

Browse files
author
kushiemoon
committed
fix: complete rename of seen_paths to seen_names
Missed two references to seen_paths in scan_dir calls. All references now correctly use seen_names for preset name-based deduplication.
1 parent ff10a8a commit cd69648

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src-tauri/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ fn list_presets(dirs: Option<Vec<String>>) -> Result<Vec<PresetInfo>, String> {
14701470
// Always search default directories first
14711471
for dir_path in get_default_preset_dirs() {
14721472
if dir_path.exists() && dir_path.is_dir() {
1473-
scan_dir(&dir_path, &mut presets, &mut seen_paths, 0);
1473+
scan_dir(&dir_path, &mut presets, &mut seen_names, 0);
14741474
}
14751475
}
14761476

@@ -1479,7 +1479,7 @@ fn list_presets(dirs: Option<Vec<String>>) -> Result<Vec<PresetInfo>, String> {
14791479
for dir_str in custom_dirs {
14801480
let dir_path = std::path::Path::new(&dir_str);
14811481
if dir_path.exists() && dir_path.is_dir() {
1482-
scan_dir(dir_path, &mut presets, &mut seen_paths, 0);
1482+
scan_dir(dir_path, &mut presets, &mut seen_names, 0);
14831483
}
14841484
}
14851485
}

0 commit comments

Comments
 (0)