Skip to content

Commit

Permalink
fix: reset mode on generate
Browse files Browse the repository at this point in the history
This way, making changes to the path will bring back preprocessing.
Now having a tool selected before actually editing the path will not prevent preprocessing.
  • Loading branch information
DakshG07 committed Sep 14, 2023
1 parent 755c498 commit a88dbdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ impl eframe::App for PathyApp {
// condition, thus not rendering the button.
if !processed.is_empty() && ui.button("Generate").clicked() {
*result = Some(Self::generate(processed));
*mode = CursorMode::Default;
}
if *mode != CursorMode::Default && ui.button("Finish").clicked() {
*mode = CursorMode::Default;
Expand Down

0 comments on commit a88dbdf

Please sign in to comment.