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 45dc302de4
commit 5d59a1a10e
7 changed files with 83 additions and 42 deletions

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