Skip to content

Commit

Permalink
fix multi search bug; iced updates; speed up gui; speed up error list…
Browse files Browse the repository at this point in the history
…; update depends
  • Loading branch information
griccardos committed Nov 25, 2023
1 parent 8a60d0b commit 216f085
Show file tree
Hide file tree
Showing 23 changed files with 1,663 additions and 961 deletions.
6 changes: 3 additions & 3 deletions dioxus/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions dioxus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ build = "build.rs"

[dependencies]
librusl = {path="../librusl"}
dioxus = "0.4.0"
tokio = "1.32.0" #for dioxus
futures-channel = "0.3.28" #for dioxus
dioxus-desktop = "0.4.0"
image = "0.24.7"
dioxus = "0.4"
tokio = "1.32" #for dioxus
futures-channel = "0.3" #for dioxus
dioxus-desktop = "0.4"
image = "0.24"


[build-dependencies]
Expand Down
17 changes: 11 additions & 6 deletions dioxus/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ fn app(cx: Scope<()>) -> Element {
name: "".to_string(),
is_folder: false,
plugin: None,
ranges: vec![],
});
};
message.set(format!("Found {} in {:.2}s", found_count, fe.duration.as_secs_f32()));
Expand All @@ -93,10 +94,12 @@ fn app(cx: Scope<()>) -> Element {
name: "".to_string(),
is_folder: false,
plugin: None,
ranges: vec![],
});
}
}
librusl::manager::SearchResult::SearchErrors(_) => { /*todo show errors*/ }
librusl::manager::SearchResult::SearchCount(_) => {}
}
}

Expand Down Expand Up @@ -160,12 +163,14 @@ fn app(cx: Scope<()>) -> Element {
} else {
message.set("Searching".to_string());
man.with_mut(|x| {
x.search(Search {
name_text: text_name.to_string(),
contents_text: text_contents.to_string(),
dir: text_dir.to_string(),
..Default::default()
})
x.search(
&Search {
name_text: text_name.to_string(),
contents_text: text_contents.to_string(),
dir: text_dir.to_string(),
..Default::default()
},
)
});
}
},
Expand Down
8 changes: 4 additions & 4 deletions druid/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions druid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusl"
version = "0.6.0"
version = "0.7.0"
edition = "2021"
build = "build.rs"
description = "search gui"
Expand All @@ -9,7 +9,7 @@ description = "search gui"
librusl = { path="../librusl"}
rfd = "0.11" #for selecting directory for gui
druid ={ version = "0.8.3", features = ["im", "raw-win-handle"] } #GUI
regex = "1.9"
regex = "1.9"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["windef"] } #for icon in windows
Expand Down
Loading

0 comments on commit 216f085

Please sign in to comment.