🪲 Fix support dialog on GTK4

This commit is contained in:
Simon Schneegans
2023-06-05 21:58:52 +02:00
parent b8759174f8
commit 78d4e79925
2 changed files with 28 additions and 32 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ var PreferencesDialog = class PreferencesDialog {
this._settings.set_boolean('show-support-dialog', false); this._settings.set_boolean('show-support-dialog', false);
} }
if (!utils.isGTK4()) { if (!utils.isADW()) {
dialog.close(); dialog.close();
} }
}); });
+1 -5
View File
@@ -38,8 +38,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="text">Do you want to support Burn-My-Windows?</property> <property name="text">Do you want to support Burn-My-Windows?</property>
<property name="secondary-text">If only one out of ten users would support this project with 1$ / month, I could work full-time on open-source projects!</property> <property name="secondary-text">If only one out of ten users would support this project with 1$ / month, I could work full-time on open-source projects!</property>
<property name="modal">true</property> <property name="modal">true</property>
<child internal-child="vbox">
<object class="GtkBox">
<child internal-child="message_area"> <child internal-child="message_area">
<object class="GtkBox"> <object class="GtkBox">
<child> <child>
@@ -61,7 +59,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
</object> </object>
</child> </child>
<child internal-child="action_area"> <child internal-child="action_area">
<object class="GtkHButtonBox"> <object class="GtkBox">
<child> <child>
<object class="GtkButton" id="support_never_button"> <object class="GtkButton" id="support_never_button">
<property name="label">Do not show this again!</property> <property name="label">Do not show this again!</property>
@@ -74,8 +72,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
</child> </child>
</object> </object>
</child> </child>
</object>
</child>
<action-widgets> <action-widgets>
<action-widget response="1" default="true">support_later_button</action-widget> <action-widget response="1" default="true">support_later_button</action-widget>
<action-widget response="2">support_never_button</action-widget> <action-widget response="2">support_never_button</action-widget>