Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolved crash when user opens settings #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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)
Expand Down