network: Initialize primary and VPN connections on startup

We only connect to the corresponding property notifications after both
Client and RemoteSettings are ready, so we may miss the initial signal
emission. Make sure to pick up the connections in this case to fix the
network indicator not showing up.

https://bugzilla.gnome.org/show_bug.cgi?id=772249
This commit is contained in:
Florian Müllner 2015-06-03 12:30:12 +02:00
parent f00826f3fb
commit d0bab1f7ac

View File

@ -1632,6 +1632,8 @@ const NMApplet = new Lang.Class({
this._readConnections(); this._readConnections();
this._readDevices(); this._readDevices();
this._syncNMState(); this._syncNMState();
this._syncMainConnection();
this._syncVPNConnections();
this._client.connect('notify::manager-running', Lang.bind(this, this._syncNMState)); this._client.connect('notify::manager-running', Lang.bind(this, this._syncNMState));
this._client.connect('notify::networking-enabled', Lang.bind(this, this._syncNMState)); this._client.connect('notify::networking-enabled', Lang.bind(this, this._syncNMState));