From 83d4b9ce5a62ad5e542660cf86a251da23ff968d Mon Sep 17 00:00:00 2001 From: jderose9 Date: Mon, 3 Apr 2017 22:04:02 -0400 Subject: [PATCH] Restore original panel box styles on disable Closes #34 --- panelStyle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panelStyle.js b/panelStyle.js index 620e09d..874ade5 100644 --- a/panelStyle.js +++ b/panelStyle.js @@ -173,21 +173,18 @@ const dtpPanelStyle = new Lang.Class({ /*recurse actors */ - this._restoreOriginalStyle(this.panel._rightBox); if(this._rightBoxOperations.length) { let children = this.panel._rightBox.get_children(); for(let i in children) this._recursiveApply(children[i], this._rightBoxOperations); } - this._restoreOriginalStyle(this.panel._centerBox); if(this._centerBoxOperations.length) { let children = this.panel._centerBox.get_children(); for(let i in children) this._recursiveApply(children[i], this._centerBoxOperations); } - this._restoreOriginalStyle(this.panel._leftBox); if(this._leftBoxOperations.length) { let children = this.panel._leftBox.get_children(); for(let i in children) @@ -224,18 +221,21 @@ const dtpPanelStyle = new Lang.Class({ if (this._leftBoxActorAddedID) this.panel._leftBox.disconnect(this._leftBoxActorAddedID); + this._restoreOriginalStyle(this.panel._rightBox); if(this._rightBoxOperations.length) { let children = this.panel._rightBox.get_children(); for(let i in children) this._recursiveApply(children[i], this._rightBoxOperations, true); } + this._restoreOriginalStyle(this.panel._centerBox); if(this._centerBoxOperations.length) { let children = this.panel._centerBox.get_children(); for(let i in children) this._recursiveApply(children[i], this._centerBoxOperations, true); } + this._restoreOriginalStyle(this.panel._leftBox); if(this._leftBoxOperations.length) { let children = this.panel._leftBox.get_children(); for(let i in children)