[gnome-shell] status/network: Notify icon change after access-point update
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] status/network: Notify icon change after access-point update
- Date: Sun, 7 Aug 2022 22:08:37 +0000 (UTC)
commit 5e533e5f778c8f61293f3f7f12fb69849893ca2f
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Aug 5 00:39:47 2022 +0200
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>
js/ui/status/network.js | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 904abf5849..d6cad56241 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1329,19 +1329,14 @@ var NMDeviceWireless = class extends Signals.EventEmitter {
this._dialog = null;
}
- _strengthChanged() {
- this._iconChanged();
- }
-
_activeApChanged() {
this._activeAccessPoint?.disconnectObject(this);
-
this._activeAccessPoint = this._device.active_access_point;
+ this._activeAccessPoint?.connectObject(
+ 'notify::strength', () => this._iconChanged(),
+ this);
- this._activeAccessPoint?.connectObject('notify::strength',
- this._strengthChanged.bind(this), this);
-
- this._sync();
+ this._iconChanged();
}
_sync() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]