fix: prevent window from being closed

This commit is contained in:
2026-11-06 23:31:43 +01:00
parent d0d2d0311b
commit 1cddc20bb6

View File

@@ -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(())