mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-12 01:03:51 +01:00
Update: Set Panel._originalAddToPanelBox to undefined on disable
Clean up more on disable by setting `Panel._originalAddToPanelBox` to `undefined`.
This commit is contained in:
parent
cc2098b597
commit
c7e5d80ccb
1 changed files with 2 additions and 0 deletions
|
|
@ -85,6 +85,8 @@ class Extension {
|
||||||
disable() {
|
disable() {
|
||||||
// Revert the overwrite of `Panel._addToPanelBox`.
|
// Revert the overwrite of `Panel._addToPanelBox`.
|
||||||
Panel.Panel.prototype._addToPanelBox = Panel.Panel.prototype._originalAddToPanelBox;
|
Panel.Panel.prototype._addToPanelBox = Panel.Panel.prototype._originalAddToPanelBox;
|
||||||
|
// Set `Panel._originalAddToPanelBox` to `undefined`.
|
||||||
|
Panel._originalAddToPanelBox = undefined;
|
||||||
|
|
||||||
// Disconnect signals.
|
// Disconnect signals.
|
||||||
for (const handlerId of this._settingsHandlerIds) {
|
for (const handlerId of this._settingsHandlerIds) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue