From 4c1fa88d4a7822f01ea8b7111dbf420814bc9c6e Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Thu, 11 Sep 2025 20:35:52 -0400 Subject: [PATCH] Put things back to normal --- waycast-gtk/src/main.rs | 4 ++-- waycast-plugins/src/projects/mod.rs | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/waycast-gtk/src/main.rs b/waycast-gtk/src/main.rs index 7853733..b5fa06b 100644 --- a/waycast-gtk/src/main.rs +++ b/waycast-gtk/src/main.rs @@ -14,8 +14,8 @@ fn main() { app.connect_activate(|app| { // Create the core launcher let launcher = WaycastLauncher::new() - // .add_plugin(Box::new(waycast_plugins::drun::new())) - // .add_plugin(Box::new(waycast_plugins::file_search::new())) + .add_plugin(Box::new(waycast_plugins::drun::new())) + .add_plugin(Box::new(waycast_plugins::file_search::new())) .add_plugin(Box::new(waycast_plugins::projects::new())) .init(); diff --git a/waycast-plugins/src/projects/mod.rs b/waycast-plugins/src/projects/mod.rs index f1982e7..4e2fee2 100644 --- a/waycast-plugins/src/projects/mod.rs +++ b/waycast-plugins/src/projects/mod.rs @@ -157,19 +157,6 @@ impl LauncherPlugin for ProjectsPlugin { }); } - fn default_list(&self) -> Vec> { - let mut entries: Vec> = Vec::new(); - - // Try to get files without blocking - if indexing is still in progress, return empty - if let Ok(files) = self.files.try_lock() { - for f in files.iter() { - entries.push(Box::new(f.clone())); - } - } - - entries - } - fn filter(&self, query: &str) -> Vec> { if query.is_empty() { return self.default_list();