fixed an error when after the first connection with admin config the container model was not updated
This commit is contained in:
parent
45dc302de4
commit
5d59a1a10e
7 changed files with 83 additions and 42 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue