mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-29 00:24:46 +01:00
chore: application search skip coco ai itself
This commit is contained in:
@@ -227,6 +227,11 @@ impl ApplicationSearchSource {
|
||||
.trim_end_matches(".app")
|
||||
.to_lowercase(); // to_lowercase returns a String, which is owned
|
||||
|
||||
//TODO, replace this hard-coded name to actual local app name in case it may change
|
||||
if search_word.is_empty() || search_word.eq("coco ai") {
|
||||
continue;
|
||||
}
|
||||
|
||||
let search_word_ref = search_word.as_str(); // Get a reference to the string slice
|
||||
applications.insert(search_word_ref, file_path_str.clone());
|
||||
if let Some(icon_path) = extract_icon_from_app_bundle(&file_path, &app_data_folder) {
|
||||
|
||||
Reference in New Issue
Block a user