Update QtZeroConf commit

This commit is contained in:
Michael Zanetti 2021-09-13 16:41:11 +02:00
parent f48aa43861
commit cee1c5ba3c
3 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 98ffbc58ae381e3f53d7554ce44e47eb39af5283
Subproject commit d191f102a74bd880c799ad4058474223db748fb0

View File

@ -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();

View File

@ -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