🔧 Add support dialog for GTK3 and GTK4

This commit is contained in:
Simon Schneegans
2023-06-05 21:51:33 +02:00
parent 106ed964d5
commit d89be65fe3
3 changed files with 104 additions and 1 deletions
+6 -1
View File
@@ -405,9 +405,14 @@ var PreferencesDialog = class PreferencesDialog {
const dialog = this._builder.get_object('support-dialog');
dialog.set_transient_for(window);
dialog.connect('response', (dialog, response) => {
if (response === 'never') {
if ((utils.isADW() && response === 'never') ||
(!utils.isADW() && response === 2)) {
this._settings.set_boolean('show-support-dialog', false);
}
if (!utils.isGTK4()) {
dialog.close();
}
});
dialog.show();
}