Quit the application when the user clicks the header bar X

pull/197/head
Savanni D'Gerinel 2024-02-19 09:49:20 -05:00
parent f7f55d74fd
commit 56ff5527ba
1 changed files with 4 additions and 0 deletions

View File

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