[gnome-shell] status/network: Always notify icon-name on strength change



commit f6e889626ba56535f02accfa9d7a0ccbba21f249
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Aug 9 12:55:16 2022 +0200

    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>

 js/ui/status/network.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 7a436ba7a5..0bddc621a4 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]