From 6d710724a587ddb02a3f94bf4b5162103db4dd7a Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 7 Nov 2022 20:06:13 +0100 Subject: [PATCH] :wrench: Fix preferences on GTK4 (once more) --- prefs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prefs.js b/prefs.js index fe5e33b..4c1187e 100644 --- a/prefs.js +++ b/prefs.js @@ -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 { // ------------------------------