Skip to content

Commit

Permalink
fix: make ui build after update
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectlyInternal committed Oct 9, 2024
1 parent 8b5b8cb commit f7adb2a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crates/rnote-ui/src/penssidebar/eraserpage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,12 @@ impl RnEraserPage {
#[weak]
appwindow,
move |speed_scaling_toggle| {
appwindow
.active_tab_wrapper()
.canvas()
.engine_mut()
.pens_config
.eraser_config
.speed_scaling = speed_scaling_toggle.is_active();
let Some(canvas) = appwindow.active_tab_canvas() else {
return;
};

canvas.engine_mut().pens_config.eraser_config.speed_scaling =
speed_scaling_toggle.is_active();
}
));
}
Expand Down

0 comments on commit f7adb2a

Please sign in to comment.