Review of "Ringlight NG" version 1.0.0 (2)

Details Page Preview

Puts a soft, warm glow around the edges of your screen so your face is lit during video calls. Turns itself on whenever an app opens the webcam. Brightness, colour and size are in the panel menu and the extension settings.

Extension Homepage
https://github.com/adil192/ringlight-ng

No comments.

Diff Against

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) warning 3

Shexli found 3 issues that may need reviewer attention.

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:27
    this._motionController = new Clutter.MotionController()

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:11
    this._area = new St.DrawingArea({ reactive: false })
  • extension.js:27
    this._motionController = new Clutter.MotionController()
  • extension.js:10
    this._settings = this.getSettings()

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • indicator.js:18
    enabledToggle.connect('toggled', (_, on) => settings.set_boolean('enabled', on))
  • indicator.js:21
    autoModeToggle.connect('toggled', (_, on) => settings.set_boolean('auto-mode', on))
  • indicator.js:30
    slider.connect('notify::value', () => settings.set_double('brightness', slider.value))
  • indicator.js:35
    prefs.connect('activate', () => ext.openPreferences())
  • indicator.js:45
    indicator.connect('destroy', () => settings.disconnect(changedId))
  • extension.js:12
    this._area.connect('repaint', () => this._onRepaint())
  • extension.js:33
            this._motionController.connect('leave', () => {
                this._pointer = undefined;
                if (this._area && this._area.visible)
                    this._queueRepaint();
            })
  • extension.js:28
            this._motionController.connect('motion', (_, sprite) => {
                this._pointer = sprite.get_coords();
                if (this._area && this._area.visible)
                    this._queueRepaint();
            })

All Versions

Version Status
1.0.3 (5) Unreviewed
1.0.2 (4) Rejected
1.0.1 (3) Rejected
1.0.0 (2) Rejected
1.0.0 (1) Rejected

Previous Reviews on this Version

adil192 posted a review
These Shexli warnings seem like false positives: - EGO-L-002: Clutter.MotionController does not have a `destroy()` method. Maybe Shexli hasn't updated for https://gjs.guide/extensions/upgrading/gnome-shell-51.html#clutter-controllers yet? - EGO-L-005: All of these are released with undefined already, not sure why this warning is still here. - EGO-L-003: - indicator.js: These are all children of the PanelMenu.Button and are destroyed with it. - extension.js:12 This _area is destroyed in disable, taking this signal with it - extension.js:33 MotionController does not have a destroy() method. This _motionController is removed from `global.stage` in `disable`. Please let me know if these are actual errors
adil192 auto- rejected
Auto-rejected because of new version 1.0.1 (3) was uploaded