A button to toggle AmneziaWG service on/off
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
1. Also null out in disable: ```js this._settings = null; ``` [EGO Review Guidelines: Destroy](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#destroy-all-objects) 2. You cannot create instance of objects in init (line 7 `prefs.js`): [EGO Review Guidelines: Destroy](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-initialization-for-static-resources) You can make it local to `buildPrefsWidget()` and pass that to the functions needing it. You can also use another method, which you should switch to eventually. Use [`fillPreferencesWindow()`](https://gjs.guide/extensions/upgrading/gnome-shell-42.html#fillpreferenceswindow), and move that line to `fillPreferencesWindow()` but clean up on window close: ```js window.connect('close-request', () => { settings = null; }); ``` If you need any help with your extension you can ask us on: - [GNOME Extensions Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions