fix: prevent window from being closed
This commit is contained in:
@@ -9,6 +9,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
let ui_handle = ui.as_weak();
|
||||
|
||||
ui.window().on_close_requested(|| {
|
||||
slint::CloseRequestResponse::KeepWindowShown
|
||||
});
|
||||
|
||||
ui.run()?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user