status/network: Always notify icon-name on strength change

We do want to update the best AP on strength change, in case we
can switch to a better one.

But even if we can't and the AP is unchanged, the icon should
be updated to reflect the change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2414>
This commit is contained in:
Florian Müllner 2022-08-09 12:55:16 +02:00 committed by Marge Bot
parent 04d4d70988
commit f6e889626b

View File

@ -714,8 +714,10 @@ const WirelessNetwork = GObject.registerClass({
this._accessPoints.add(ap);
ap.connectObject(
'notify::strength', () => this._updateBestAp(),
this);
'notify::strength', () => {
this.notify('icon-name');
this._updateBestAp();
}, this);
this._updateBestAp();
if (wasActive !== this.is_active)