mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 15:04:37 +00:00
Make 'Close' button close AboutDialog (#1018)
This commit is contained in:
parent
f4eba18ff6
commit
e70b7c1222
1 changed files with 6 additions and 0 deletions
|
@ -241,6 +241,12 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
|
|||
dialog.copyright = "Copyright © 2016-2021 - Dino Team";
|
||||
dialog.license_type = License.GPL_3_0;
|
||||
|
||||
dialog.response.connect((response_id) => {
|
||||
if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) {
|
||||
dialog.destroy();
|
||||
}
|
||||
});
|
||||
|
||||
if (!use_csd()) {
|
||||
dialog.set_titlebar(null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue