From f6e889626ba56535f02accfa9d7a0ccbba21f249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 9 Aug 2022 12:55:16 +0200 Subject: [PATCH] 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: --- 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 7a436ba7a..0bddc621a 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)