1786042998

This commit is contained in:
2026-08-06 21:03:18 +02:00
parent 2c50ae9866
commit b5d1aeed12

View File

@@ -15,8 +15,9 @@ fn main() -> Result<(), slint::PlatformError> {
let weak_window = main_window.as_weak();
slint::spawn_local(async move {
sleep(Duration::from_secs(3));
sleep(Duration::from_secs(5));
weak_window.upgrade_in_event_loop(move |ui| {
println!("Goodbye!");
ui.set_text("GoodBye!".into());
})
})