mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 3 additions and 2 deletions
|
|
@ -152,11 +152,12 @@ const Indicator = new Lang.Class({
|
|||
|
||||
_syncIcon: function() {
|
||||
let icon = this._proxy.Icon;
|
||||
let hasIcon = (icon != null);
|
||||
let hasIcon = false;
|
||||
|
||||
if (hasIcon) {
|
||||
if (icon) {
|
||||
let gicon = Gio.icon_new_for_string(icon);
|
||||
this.setGIcon(gicon);
|
||||
hasIcon = true;
|
||||
}
|
||||
this.mainIcon.visible = hasIcon;
|
||||
this.actor.visible = hasIcon && !this._isLocked;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue