Skip to content

Commit

Permalink
0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Dec 26, 2022
1 parent 39fa5c6 commit 63a3397
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sysinfo-gui"
version = "0.1.14"
version = "0.1.15"
edition = "2021"
repository = "https://github.com/MoAlyousef/sysinfo-gui"
keywords = ["cross-platform", "monitoring", "gui"]
Expand Down
7 changes: 2 additions & 5 deletions src/view/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,15 @@ pub fn settings(view: &MyView) -> Option<Box<dyn FnMut() + Send>> {
let mut row = group::Flex::default().row();
frame::Frame::default()
.with_align(Align::Left | Align::Inside)
.with_label("Modal:");
.with_label("Enable logging:");
let col = group::Flex::default().column();
frame::Frame::default();
let mut t = RoundToggle::default();
t.set_value(false);
t.set_callback({
let mut win = win.clone();
move |t| {
if t.value() {
win.make_modal(true);
} else {
win.clear_modal_states();
eprintln!("Logging is not yet added!");
}
app::redraw();
}
Expand Down

0 comments on commit 63a3397

Please sign in to comment.