From e4c877da49bc9dbc71e1dc0c138d0de147f51da1 Mon Sep 17 00:00:00 2001 From: Justin Donnelly Date: Mon, 13 Jan 2025 21:21:39 -0500 Subject: [PATCH] plugins/meson-templates: Use const where possible for JavaScript --- src/plugins/meson-templates/resources/src/main-gtk4.js.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/meson-templates/resources/src/main-gtk4.js.tmpl b/src/plugins/meson-templates/resources/src/main-gtk4.js.tmpl index 671af5c00..646d2a479 100644 --- a/src/plugins/meson-templates/resources/src/main-gtk4.js.tmpl +++ b/src/plugins/meson-templates/resources/src/main-gtk4.js.tmpl @@ -27,7 +27,7 @@ export const {{PreFix}}Application = GObject.registerClass( const show_about_action = new Gio.SimpleAction({name: 'about'}); show_about_action.connect('activate', action => { {{if is_adwaita}} - let aboutParams = { + const aboutParams = { application_name: '{{name}}', application_icon: '{{appid}}', developer_name: '{{author}}', @@ -42,7 +42,7 @@ export const {{PreFix}}Application = GObject.registerClass( const aboutDialog = new Adw.AboutDialog(aboutParams); aboutDialog.present(this.active_window); {{else}} - let aboutParams = { + const aboutParams = { transient_for: this.active_window, modal: true, program_name: '{{name}}', -- GitLab