maybe windows needs even longer for windows to open

This commit is contained in:
Jonathan Kelley committed 2024-02-05 17:15:06 -08:00
1 parent 72ae13ccb5
commit d2346cc477
1 file changed
+5 -5
+5 -5
View File
@@ -14,7 +14,7 @@ pub(crate) fn check_app_exits(app: fn() -> Element) {
let should_panic = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(true));
let should_panic_clone = should_panic.clone();
std::thread::spawn(move || {
std::thread::sleep(std::time::Duration::from_secs(5));
std::thread::sleep(std::time::Duration::from_secs(30));
if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
std::process::exit(exitcode::SOFTWARE);
}
@@ -205,10 +205,10 @@ fn app() -> Element {
r#"new FocusEvent("focusout",{bubbles: true})"#,
);
if received_events() == 13 {
println!("all events recieved");
desktop_context.close();
}
// if received_events() == 13 {
// println!("all events recieved");
// desktop_context.close();
// }
rsx! {
div {