bdaase/noannoyance

Exception occurs when opening extension settings

Closed this issue · 1 comments

Hey! Thanks for maintaining this, it's a nice workaround until GNOME resolve whatever is making this such a pain. ^-^'

I've just installed the extension but ran into an exception when trying to check out the settings.

Distro: Debian 11
GNOME Shell: 3.38.6
Noannoyance v2: b759d10 (master at time of cloning)

  1. Install extension following the steps in README.md.
  2. Open GNOME Tweaks
  3. Navigate to extension settings
  4. Click the cog for Noannoyance v2

image

TypeError: enableIgnorelistBox.append is not a function

Stack trace:
  buildPrefsWidget@/home/seth/.local/share/gnome-shell/extensions/noannoyance@daase.net/prefs.js:49:25
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:22
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:8
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Despite this, I'm able to enable the extension and it appears to work just fine. 👍🏾
I just can't check out the settings for it.

image

Yeah, this expected because this extension requires GNOME version 40+ (we can't easily support pre and post version 40 due to the Gtk 3 -> 4 gnome-shell upgrade).

0a3361a is the last commit that should work for pre GNOME 40 gnome-shell versions.