NetworkMenu: fix updating the access point strength
A notify signal does not include the new value of the property in its signature, so the handler was trying to compare a GParamSpec with a number when updating. Fix it to always retrieve the value from the object. https://bugzilla.gnome.org/show_bug.cgi?id=646443
This commit is contained in:
parent
57a332bb08
commit
3c3ea2f575
@ -132,8 +132,8 @@ NMNetworkMenuItem.prototype = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_updated: function(ap, strength) {
|
_updated: function(ap) {
|
||||||
if (strength > this.bestAP.strength)
|
if (ap.strength > this.bestAP.strength)
|
||||||
this.bestAP = ap;
|
this.bestAP = ap;
|
||||||
|
|
||||||
this._signalIcon.icon_name = this._getIcon();
|
this._signalIcon.icon_name = this._getIcon();
|
||||||
|
Loading…
Reference in New Issue
Block a user