diff --git a/prefs.js b/prefs.js index a997d24..f389e74 100644 --- a/prefs.js +++ b/prefs.js @@ -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(); } diff --git a/resources/ui/gtk3/prefs.ui b/resources/ui/gtk3/prefs.ui index badce07..9b455e3 100644 --- a/resources/ui/gtk3/prefs.ui +++ b/resources/ui/gtk3/prefs.ui @@ -67,6 +67,55 @@ SPDX-License-Identifier: GPL-3.0-or-later + + + Do you want to support Burn-My-Windows? + If only one out of ten users would support this project with 1$ / month, I could work full-time on open-source projects! + true + + + + + + + true + start + true + Support me on Ko-fi: <a href='https://ko-fi.com/schneegans'>https://ko-fi.com/schneegans</a> + + + + + true + start + true + Support me on GitHub: <a href='https://github.com/sponsors/schneegans'>https://github.com/sponsors/schneegans</a> + + + + + + + + + Do not show this again! + + + + + Maybe later... + + + + + + + + support_later_button + support_never_button + + + over-down-up diff --git a/resources/ui/gtk4/prefs.ui b/resources/ui/gtk4/prefs.ui index 9c1d507..c362bc8 100644 --- a/resources/ui/gtk4/prefs.ui +++ b/resources/ui/gtk4/prefs.ui @@ -33,6 +33,55 @@ SPDX-License-Identifier: GPL-3.0-or-later + + + Do you want to support Burn-My-Windows? + If only one out of ten users would support this project with 1$ / month, I could work full-time on open-source projects! + true + + + + + + + true + start + true + Support me on Ko-fi: <a href='https://ko-fi.com/schneegans'>https://ko-fi.com/schneegans</a> + + + + + true + start + true + Support me on GitHub: <a href='https://github.com/sponsors/schneegans'>https://github.com/sponsors/schneegans</a> + + + + + + + + + Do not show this again! + + + + + Maybe later... + + + + + + + + support_later_button + support_never_button + + + over-down-up