Update QtZeroConf commit
This commit is contained in:
parent
f48aa43861
commit
cee1c5ba3c
@ -1 +1 @@
|
|||||||
Subproject commit 98ffbc58ae381e3f53d7554ce44e47eb39af5283
|
Subproject commit d191f102a74bd880c799ad4058474223db748fb0
|
||||||
@ -158,6 +158,9 @@ void ConfiguredHostsModel::addHost(ConfiguredHost *host)
|
|||||||
QModelIndex idx = index(m_list.indexOf(host));
|
QModelIndex idx = index(m_list.indexOf(host));
|
||||||
emit dataChanged(idx, idx, {RoleName});
|
emit dataChanged(idx, idx, {RoleName});
|
||||||
});
|
});
|
||||||
|
connect(host, &ConfiguredHost::uuidChanged, this, [=](){
|
||||||
|
saveToDisk();
|
||||||
|
});
|
||||||
m_list.append(host);
|
m_list.append(host);
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
emit countChanged();
|
emit countChanged();
|
||||||
|
|||||||
@ -295,7 +295,7 @@ Item {
|
|||||||
popup.open();
|
popup.open();
|
||||||
}
|
}
|
||||||
onConnectedChanged: {
|
onConnectedChanged: {
|
||||||
print("json client connected changed", engine.jsonRpcClient.connected)
|
print("json client connected changed", engine.jsonRpcClient.connected, engine.jsonRpcClient.serverUuid)
|
||||||
if (engine.jsonRpcClient.connected) {
|
if (engine.jsonRpcClient.connected) {
|
||||||
nymeaDiscovery.cacheHost(engine.jsonRpcClient.currentHost)
|
nymeaDiscovery.cacheHost(engine.jsonRpcClient.currentHost)
|
||||||
configuredHost.uuid = engine.jsonRpcClient.serverUuid
|
configuredHost.uuid = engine.jsonRpcClient.serverUuid
|
||||||
|
|||||||
Reference in New Issue
Block a user