UI template

This commit is contained in:
Alexey 2025-09-04 09:58:11 +03:00
commit b6413f0e7d
6 changed files with 5897 additions and 21 deletions

View file

@ -7,15 +7,7 @@ slint::include_modules!();
fn main() -> Result<(), Box<dyn Error>> {
let ui = AppWindow::new()?;
ui.on_request_increase_value({
let ui_handle = ui.as_weak();
move || {
let ui = ui_handle.unwrap();
ui.set_counter(ui.get_counter() + 1);
}
});
ui.run()?;
Ok(())