Quit the application when the user clicks the header bar X
This commit is contained in:
parent
f7f55d74fd
commit
56ff5527ba
|
@ -56,6 +56,10 @@ impl AppWindow {
|
|||
.width_request(800)
|
||||
.height_request(746)
|
||||
.build();
|
||||
window.connect_destroy({
|
||||
let adw_app = adw_app.clone();
|
||||
move |_| adw_app.quit()
|
||||
});
|
||||
|
||||
let stylesheet = String::from_utf8(
|
||||
resources_lookup_data(
|
||||
|
|
Loading…
Reference in New Issue