mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix intellihide container
This commit is contained in:
@@ -65,12 +65,12 @@ var Intellihide = Utils.defineClass({
|
||||
this._intellihideChangedId = this._dtpSettings.connect('changed::intellihide', () => this._changeEnabledStatus());
|
||||
this._intellihideOnlySecondaryChangedId = this._dtpSettings.connect('changed::intellihide-only-secondary', () => this._changeEnabledStatus());
|
||||
|
||||
this._enabled = false;
|
||||
this.enabled = false;
|
||||
this._changeEnabledStatus();
|
||||
},
|
||||
|
||||
enable: function(reset) {
|
||||
this._enabled = true;
|
||||
this.enabled = true;
|
||||
this._monitor = this._dtpPanel.monitor;
|
||||
this._animationDestination = -1;
|
||||
this._pendingUpdate = false;
|
||||
@@ -117,14 +117,14 @@ var Intellihide = Utils.defineClass({
|
||||
|
||||
this._revealPanel(!reset);
|
||||
|
||||
this._enabled = false;
|
||||
this.enabled = false;
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
this._dtpSettings.disconnect(this._intellihideChangedId);
|
||||
this._dtpSettings.disconnect(this._intellihideOnlySecondaryChangedId);
|
||||
|
||||
if (this._enabled) {
|
||||
if (this.enabled) {
|
||||
this.disable();
|
||||
}
|
||||
},
|
||||
@@ -134,7 +134,7 @@ var Intellihide = Utils.defineClass({
|
||||
},
|
||||
|
||||
revealAndHold: function(holdStatus) {
|
||||
if (this._enabled && !this._holdStatus) {
|
||||
if (this.enabled && !this._holdStatus) {
|
||||
this._revealPanel();
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ var Intellihide = Utils.defineClass({
|
||||
release: function(holdStatus) {
|
||||
this._holdStatus -= holdStatus;
|
||||
|
||||
if (this._enabled && !this._holdStatus) {
|
||||
if (this.enabled && !this._holdStatus) {
|
||||
this._queueUpdatePanelPosition();
|
||||
}
|
||||
},
|
||||
@@ -159,7 +159,7 @@ var Intellihide = Utils.defineClass({
|
||||
let onlySecondary = this._dtpSettings.get_boolean('intellihide-only-secondary');
|
||||
let enabled = intellihide && (this._dtpPanel.isSecondary || !onlySecondary);
|
||||
|
||||
if (this._enabled !== enabled) {
|
||||
if (this.enabled !== enabled) {
|
||||
this[enabled ? 'enable' : 'disable']();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user