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

This commit is contained in:
jenkins 2022-07-03 20:31:55 +02:00
commit ae34e3d4ce

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