[yabridgectl] Allow removing orphan VST3 modules

This commit is contained in:
Robbert van der Helm
2020-12-24 12:12:48 +01:00
parent 68c95e9527
commit 9d33cafd37
3 changed files with 61 additions and 30 deletions
+2 -2
View File
@@ -221,7 +221,7 @@ impl SearchResults {
// because they are not in any of the directories we're indexing.
installation_status.extend(self.vst3_modules.iter().map(|module| {
let module_path = module.yabridge_native_module_path();
let install_type = get_file_type(&module_path);
let install_type = get_file_type(module_path.clone());
(module_path, install_type)
}));
@@ -372,7 +372,7 @@ impl SearchIndex {
reconstructed_path.push(architecture.vst_arch());
reconstructed_path.push(module_name);
return reconstructed_path.exists();
reconstructed_path.exists()
})
.unwrap_or(false);