Fix saving manual connections in config
parent
f48aa43861
commit
92eaef6dbb
|
|
@ -158,6 +158,9 @@ void ConfiguredHostsModel::addHost(ConfiguredHost *host)
|
|||
QModelIndex idx = index(m_list.indexOf(host));
|
||||
emit dataChanged(idx, idx, {RoleName});
|
||||
});
|
||||
connect(host, &ConfiguredHost::uuidChanged, this, [=](){
|
||||
saveToDisk();
|
||||
});
|
||||
m_list.append(host);
|
||||
endInsertRows();
|
||||
emit countChanged();
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ Item {
|
|||
popup.open();
|
||||
}
|
||||
onConnectedChanged: {
|
||||
print("json client connected changed", engine.jsonRpcClient.connected)
|
||||
print("json client connected changed", engine.jsonRpcClient.connected, engine.jsonRpcClient.serverUuid)
|
||||
if (engine.jsonRpcClient.connected) {
|
||||
nymeaDiscovery.cacheHost(engine.jsonRpcClient.currentHost)
|
||||
configuredHost.uuid = engine.jsonRpcClient.serverUuid
|
||||
|
|
|
|||
Loading…
Reference in New Issue