fixed an error when after the first connection with admin config the container model was not updated

This commit is contained in:
vladimir.kuznetsov
2023-10-10 12:50:41 +05:00
parent 0ce30a4e81
commit 9d6559f0d7
7 changed files with 95 additions and 57 deletions
+2
View File
@@ -279,6 +279,8 @@ void AmneziaApplication::initModels()
{
m_containersModel.reset(new ContainersModel(m_settings, this));
m_engine->rootContext()->setContextProperty("ContainersModel", m_containersModel.get());
connect(m_vpnConnection.get(), &VpnConnection::newVpnConfigurationCreated, m_containersModel.get(),
&ContainersModel::updateContainersConfig);
m_serversModel.reset(new ServersModel(m_settings, this));
m_engine->rootContext()->setContextProperty("ServersModel", m_serversModel.get());