[gnome-shell] network: Update the icon even if we don't have a connection



commit 156be19c2d17cd49d5dd7b8a7eeeaf3fee6bf479
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Aug 16 19:32:54 2013 -0400

    network: Update the icon even if we don't have a connection
    
    If we don't have a connection at startup or we transition from
    having a connection to not having a connection, we need to make
    sure we hide the correct indicators.

 js/ui/status/network.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 2b5efeb..c2a2686 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1498,8 +1498,9 @@ const NMApplet = new Lang.Class({
         if (this._mainConnection) {
             let dev = this._mainConnection._primaryDevice;
             this._mainConnectionIconChangedId = dev.connect('icon-changed', Lang.bind(this, 
this._updateIcon));
-            this._updateIcon();
         }
+
+        this._updateIcon();
     },
 
     _notifyActivated: function(activeConnection) {


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