on xenial help sign in
As review
553e4b0Andrea Cimitan
qml/Wizard/Pages/40-wifi.qml+3−1
@@ -48,7 +48,7 @@ LocalComponents.Page {
48 NetworkInfo {
48 NetworkInfo {
49 id: networkInfo
49 id: networkInfo
50
50
51− property string accessPointName: getAccessPointName()
51+ property string accessPointName
52
52
53 monitorCurrentNetworkMode: true
53 monitorCurrentNetworkMode: true
54 monitorNetworkName: true
54 monitorNetworkName: true
@@ -58,6 +58,8 @@ LocalComponents.Page {
58 onNetworkNameChanged: getAccessPointName()
58 onNetworkNameChanged: getAccessPointName()
59 onNetworkStatusChanged: if (status !== NetworkInfo.HomeNetwork) accessPointName = ""
59 onNetworkStatusChanged: if (status !== NetworkInfo.HomeNetwork) accessPointName = ""
60
60
61+ Component.onCompleted: getAccessPointName()
62+
61 function getAccessPointName() {
63 function getAccessPointName() {
62 // 0 is the interface
64 // 0 is the interface
63 if (currentNetworkMode === NetworkInfo.WlanMode &&
65 if (currentNetworkMode === NetworkInfo.WlanMode &&