Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Jul 24, 2024
1 parent 16c3ae8 commit b48383b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -976,15 +976,17 @@ fn add_points_dump(rawaccel_convert_gui: &mut RawaccelConvertGui, ui: &mut egui:
[ui.available_width(), 1.0],
egui::TextEdit::singleline(&mut rawaccel_convert_gui.libinput_steps),
);
},
}
_ => {}
}

let generate_points = ui.add_sized(
[ui.available_width(), 1.0],
egui::Button::new("Generate Points"),
);
if generate_points.clicked() || previous_point_scaling != rawaccel_convert_gui.accel_args.point_scaling {
if generate_points.clicked()
|| previous_point_scaling != rawaccel_convert_gui.accel_args.point_scaling
{
let curve =
rawaccel_convert::generate_curve::generate_curve(&rawaccel_convert_gui.accel_args);
rawaccel_convert_gui.libinput_steps = curve.step_size.to_string();
Expand Down

0 comments on commit b48383b

Please sign in to comment.