Merge PR #846: Fix the tunnel proxy configuration sometimes getting lost on sync

pull/848/head
jenkins 2022-07-03 20:31:55 +02:00
commit ae34e3d4ce
1 changed files with 7 additions and 1 deletions

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() {