maybe windows needs even longer for windows to open
This commit is contained in:
1 file changed
+5
-5
@@ -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 = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(true));
|
||||||
let should_panic_clone = should_panic.clone();
|
let should_panic_clone = should_panic.clone();
|
||||||
std::thread::spawn(move || {
|
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) {
|
if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
|
||||||
std::process::exit(exitcode::SOFTWARE);
|
std::process::exit(exitcode::SOFTWARE);
|
||||||
}
|
}
|
||||||
@@ -205,10 +205,10 @@ fn app() -> Element {
|
|||||||
r#"new FocusEvent("focusout",{bubbles: true})"#,
|
r#"new FocusEvent("focusout",{bubbles: true})"#,
|
||||||
);
|
);
|
||||||
|
|
||||||
if received_events() == 13 {
|
// if received_events() == 13 {
|
||||||
println!("all events recieved");
|
// println!("all events recieved");
|
||||||
desktop_context.close();
|
// desktop_context.close();
|
||||||
}
|
// }
|
||||||
|
|
||||||
rsx! {
|
rsx! {
|
||||||
div {
|
div {
|
||||||
|
|||||||
Reference in new issue
Block a user