🔧 Fix preferences on GTK4 (once more)

This commit is contained in:
Simon Schneegans
2022-11-07 20:06:13 +01:00
parent 1324289d90
commit 6d710724a5
+3 -3
View File
@@ -578,13 +578,13 @@ var PreferencesDialog = class PreferencesDialog {
// Initializes template widgets used by the preferences dialog.
_registerCustomClasses() {
// On GTK3, each effect page is based on a template widget. This template contains the
// title and the preview button.
// If we are not using libadwaita, each effect page is based on a template widget.
// This template contains the title and the preview button.
if (!utils.isADW() && GObject.type_from_name('BurnMyWindowsEffectPage') == null) {
BurnMyWindowsEffectPage = GObject.registerClass(
{
GTypeName: 'BurnMyWindowsEffectPage',
Template: `resource:///ui/gtk3/effectPage.ui`,
Template: `resource:///ui/${utils.getUIDir()}/effectPage.ui`,
InternalChildren: ['label', 'button'],
},
class BurnMyWindowsEffectPage extends Gtk.Box { // ------------------------------