From a88dbdf310318b30df2cc0c33e3960f6e3c6570e Mon Sep 17 00:00:00 2001 From: Dukk Date: Thu, 14 Sep 2023 17:20:50 -0400 Subject: [PATCH] fix: reset mode on generate 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. --- src/gui.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui.rs b/src/gui.rs index b336177..307707f 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -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;