Fix the tunnel proxy configuration sometimes getting lost on sync

This commit is contained in:
Michael Zanetti 2022-07-03 19:19:10 +02:00
parent af7bf3cbca
commit ee5c171055

View File

@ -345,6 +345,7 @@ Item {
Connections {
target: engine.nymeaConfiguration
onFetchingDataChanged: {
print("fetching NymeaConfigration:", engine.nymeaConfiguration.fetchingData)
if (!engine.nymeaConfiguration.fetchingData) {
syncRemoteConnection()
}
@ -352,7 +353,12 @@ Item {
}
Connections {
target: engine.nymeaConfiguration.tunnelProxyServerConfigurations
onCountChanged: syncRemoteConnection();
onCountChanged: {
print("tunnel proxy count changed:", engine.nymeaConfiguration.tunnelProxyServerConfigurations.count)
if (!engine.nymeaConfiguration.fetchingData) {
syncRemoteConnection();
}
}
}
function syncRemoteConnection() {