gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
507 stars 90 forks source link

[HELP] What is best way to show error message and then close application on panic? #825

Open art-den opened 1 year ago

art-den commented 1 year ago

Hi I want to show message for user if panic occurs. I tried to use crate msgbox from panic handler but for linux and if panic happens in not-main thread I see no message. What is the idiomatic way in gtk-rs to do this?

PS: I already set panic = "abort" in my Cargo.toml