status/network: Notify icon change after access-point update

We call sync() which updates our own label and icon, but does
not notify the indicator about the icon change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2406>
This commit is contained in:
Florian Müllner 2022-08-05 00:39:47 +02:00
parent 7bfd4fe148
commit 5e533e5f77

View File

@ -1329,19 +1329,14 @@ var NMDeviceWireless = class extends Signals.EventEmitter {
this._dialog = null; this._dialog = null;
} }
_strengthChanged() {
this._iconChanged();
}
_activeApChanged() { _activeApChanged() {
this._activeAccessPoint?.disconnectObject(this); this._activeAccessPoint?.disconnectObject(this);
this._activeAccessPoint = this._device.active_access_point; this._activeAccessPoint = this._device.active_access_point;
this._activeAccessPoint?.connectObject(
'notify::strength', () => this._iconChanged(),
this);
this._activeAccessPoint?.connectObject('notify::strength', this._iconChanged();
this._strengthChanged.bind(this), this);
this._sync();
} }
_sync() { _sync() {