network: fix modem connected state check
There is no CONNECTED state for devices, it's ACTIVATED. https://bugzilla.gnome.org/show_bug.cgi?id=650124
This commit is contained in:
parent
f4e6f7074e
commit
4dcbb84f06
@ -837,7 +837,7 @@ NMDeviceModem.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get connected() {
|
get connected() {
|
||||||
return this._enabled && this.device.state == NetworkManager.DeviceState.CONNECTED;
|
return this._enabled && this.device.state == NetworkManager.DeviceState.ACTIVATED;
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user