1786031160
This commit is contained in:
@@ -19,8 +19,8 @@ fn main() -> Result<(), slint::PlatformError> {
|
||||
let weak_window = main_window.as_weak();
|
||||
thread::spawn(move || {
|
||||
sleep(Duration::from_secs(3));
|
||||
println!("Goodbye!");
|
||||
weak_window.upgrade_in_event_loop(move |ui| {
|
||||
println!("Goodbye!");
|
||||
ui.set_text("GoodBye!".into());
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user