|
@@ -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 {
|