mirror of
https://github.com/hubaldv/bioz-host-rs.git
synced 2025-12-06 05:11:17 +00:00
Added restart settings.
This commit is contained in:
@@ -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();
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user