From 1b46a7982aa894b004667ce2f6acad5cbc8159a1 Mon Sep 17 00:00:00 2001 From: Dhanush Date: Tue, 17 Dec 2024 22:10:03 +0530 Subject: [PATCH] fix: resolved crash when user opens settings --- prefs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prefs.js b/prefs.js index 2f80d64..4929dc7 100644 --- a/prefs.js +++ b/prefs.js @@ -240,11 +240,11 @@ class NssEntry { } export default class NetSpeedSimplifiedPreferences extends ExtensionPreferences { - async getPreferencesWidget() { + getPreferencesWidget() { settings = this.getSettings(schema) window._settings = settings - await fetchSettings() + fetchSettings() let frame = new Gtk.ScrolledWindow() let label = new Gtk.Label({ @@ -282,7 +282,7 @@ export default class NetSpeedSimplifiedPreferences extends ExtensionPreferences settings.set_boolean(boolArray[l], settings.get_default_value(boolArray[l]).unpack()) } settings.set_boolean('restartextension', true) - await fetchSettings() + fetchSettings() }) addIt(vbox, label)