An button on top bar for toggle Xpad note
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Welcome! In disable() you need to... toogleXpad.destroy() toggleXpad = null ...otherwise your extension will keep a reference to the old version even while disabled. You shouldn't need to call remove_child once destroyed. Prefer Main.panel.addToStatusArea (https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/panel.js#L1110) over directly inserting into a box. Main.panel.addToStatusArea('xpad-toggle', toogleXpad, /* a positioning number */ 5); See https://wiki.gnome.org/Projects/GnomeShell/Extensions/Review