Fix the tunnel proxy configuration sometimes getting lost on sync
This commit is contained in:
parent
af7bf3cbca
commit
ee5c171055
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user