Added restart settings.

This commit is contained in:
2025-08-15 09:52:56 +02:00
parent ea1d13012e
commit 5537a991d3
5 changed files with 23 additions and 2 deletions

View File

@@ -172,6 +172,12 @@ impl eframe::App for App {
self.update_start_stop();
}
// Send stop command when the window is closed
if ctx.input(|i| i.viewport().close_requested()) {
self.on = false;
self.update_start_stop();
}
ctx.request_repaint();
}}