Only read tags if also set to write?

This commit is contained in:
CDrummond committed 2025-09-21 16:27:53 +01:00
1 parent 9a7f316419
commit f27804a2bb
1 file changed
+1 -1
+1 -1
View File
@@ -643,7 +643,7 @@ pub fn analyse_files(db_path: &str, mpaths: &Vec<PathBuf>, dry_run: bool, keep_o
}
} else {
if !track_paths.is_empty() {
let untagged_paths = check_for_tags(&db, &mpath, track_paths, max_threads, &mut notifs);
let untagged_paths = if write_tags { check_for_tags(&db, &mpath, track_paths, max_threads, &mut notifs) } else { track_paths };
if !untagged_paths.is_empty() {
log::info!("New untagged files: {}", untagged_paths.len());