check close condition on poll

floats
Ondřej Hruška 4 years ago
parent 583ac7bcbf
commit 7ce51c0cc6
Signed by untrusted user: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      crsn_screen/src/exec.rs

@ -107,6 +107,11 @@ impl OpTrait for ScreenOp {
let backend: &mut Backend = state.ext_mut(); let backend: &mut Backend = state.ext_mut();
match &mut backend.window { match &mut backend.window {
Some(w) => { Some(w) => {
if !w.is_open() {
// TODO...
std::process::exit(0);
}
w.update(); w.update();
} }
None => { None => {

Loading…
Cancel
Save