Put things back to normal
This commit is contained in:
parent
5652da61bf
commit
4c1fa88d4a
@ -14,8 +14,8 @@ fn main() {
|
|||||||
app.connect_activate(|app| {
|
app.connect_activate(|app| {
|
||||||
// Create the core launcher
|
// Create the core launcher
|
||||||
let launcher = WaycastLauncher::new()
|
let launcher = WaycastLauncher::new()
|
||||||
// .add_plugin(Box::new(waycast_plugins::drun::new()))
|
.add_plugin(Box::new(waycast_plugins::drun::new()))
|
||||||
// .add_plugin(Box::new(waycast_plugins::file_search::new()))
|
.add_plugin(Box::new(waycast_plugins::file_search::new()))
|
||||||
.add_plugin(Box::new(waycast_plugins::projects::new()))
|
.add_plugin(Box::new(waycast_plugins::projects::new()))
|
||||||
.init();
|
.init();
|
||||||
|
|
||||||
|
@ -157,19 +157,6 @@ impl LauncherPlugin for ProjectsPlugin {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn default_list(&self) -> Vec<Box<dyn LauncherListItem>> {
|
|
||||||
let mut entries: Vec<Box<dyn LauncherListItem>> = 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<Box<dyn LauncherListItem>> {
|
fn filter(&self, query: &str) -> Vec<Box<dyn LauncherListItem>> {
|
||||||
if query.is_empty() {
|
if query.is_empty() {
|
||||||
return self.default_list();
|
return self.default_list();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user