From 05281ab7a0118284073cd4102950a93d0cc70f25 Mon Sep 17 00:00:00 2001 From: Andy Holmes Date: Thu, 21 Sep 2023 19:22:27 -0700 Subject: [PATCH] cleanup: drop unnecessary call to `initTranslations()` --- extension.js | 2 -- prefs.js | 1 - 2 files changed, 3 deletions(-) diff --git a/extension.js b/extension.js index 9c888a7..c5b6945 100644 --- a/extension.js +++ b/extension.js @@ -56,8 +56,6 @@ export default class DashToPanelExtension extends Extension { console.log(`Initiating ${this.uuid}`); this._realHasOverview = Main.sessionMode.hasOverview; - - this.initTranslations(); //create an object that persists until gnome-shell is restarted, even if the extension is disabled PERSISTENTSTORAGE = {}; diff --git a/prefs.js b/prefs.js index 2e78629..7069bca 100644 --- a/prefs.js +++ b/prefs.js @@ -2332,7 +2332,6 @@ const BuilderScope = GObject.registerClass({ export default class DashToPanelPreferences extends ExtensionPreferences { fillPreferencesWindow(window) { window._settings = this.getSettings('org.gnome.shell.extensions.dash-to-panel'); - this.initTranslations(); // use default width or window window.set_default_size(0, 740);