statusArea: hide power indicator on desktop
On a desktop system the power indicator does not get hidden correctly, since a blank icon '' is returned instead of null. https://bugzilla.gnome.org/show_bug.cgi?id=683080
This commit is contained in:
parent
d3f5d94afe
commit
87e021cd2e
@ -152,11 +152,12 @@ const Indicator = new Lang.Class({
|
|||||||
|
|
||||||
_syncIcon: function() {
|
_syncIcon: function() {
|
||||||
let icon = this._proxy.Icon;
|
let icon = this._proxy.Icon;
|
||||||
let hasIcon = (icon != null);
|
let hasIcon = false;
|
||||||
|
|
||||||
if (hasIcon) {
|
if (icon) {
|
||||||
let gicon = Gio.icon_new_for_string(icon);
|
let gicon = Gio.icon_new_for_string(icon);
|
||||||
this.setGIcon(gicon);
|
this.setGIcon(gicon);
|
||||||
|
hasIcon = true;
|
||||||
}
|
}
|
||||||
this.mainIcon.visible = hasIcon;
|
this.mainIcon.visible = hasIcon;
|
||||||
this.actor.visible = hasIcon && !this._isLocked;
|
this.actor.visible = hasIcon && !this._isLocked;
|
||||||
|
Loading…
Reference in New Issue
Block a user