Merge PR #662: Fix multiple connections setup when autoconnect option is given
This commit is contained in:
commit
064d627596
@ -87,7 +87,7 @@ Drawer {
|
|||||||
}
|
}
|
||||||
ProgressButton {
|
ProgressButton {
|
||||||
imageSource: "/ui/images/close.svg"
|
imageSource: "/ui/images/close.svg"
|
||||||
visible: topSectionLayout.configureConnections
|
visible: topSectionLayout.configureConnections && (autoConnectHost.length === 0 || index > 0)
|
||||||
longpressEnabled: false
|
longpressEnabled: false
|
||||||
onClicked: {
|
onClicked: {
|
||||||
configuredHostsModel.removeHost(index)
|
configuredHostsModel.removeHost(index)
|
||||||
|
|||||||
@ -129,7 +129,7 @@ Item {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
print("Warning: There is a last connected host but UUID is unknown to discovery...")
|
print("Warning: There is a last connected host but UUID is unknown to discovery...")
|
||||||
} else if (autoConnectHost.length > 0) {
|
} else if (autoConnectHost.length > 0 && index === 0) {
|
||||||
var host = nymeaDiscovery.nymeaHosts.createLanHost(Configuration.systemName, autoConnectHost);
|
var host = nymeaDiscovery.nymeaHosts.createLanHost(Configuration.systemName, autoConnectHost);
|
||||||
engine.jsonRpcClient.connectToHost(host)
|
engine.jsonRpcClient.connectToHost(host)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user