Merge pull request #325 from amnezia-vpn/bugfix/reconnectvpn_when_dc_changed

auto reconection when current-server's defaul container hase been cha…
This commit is contained in:
Nethius 2023-09-17 17:06:02 +05:00 committed by GitHub
commit 32dda9b904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 36 additions and 26 deletions

View file

@ -344,6 +344,8 @@ void AmneziaApplication::initControllers()
&PageController::showPassphraseRequestDrawer);
connect(m_pageController.get(), &PageController::passphraseRequestDrawerClosed, m_installController.get(),
&InstallController::setEncryptedPassphrase);
connect(m_installController.get(), &InstallController::currentContainerUpdated, m_connectionController.get(),
&ConnectionController::onCurrentContainerUpdated);
m_importController.reset(new ImportController(m_serversModel, m_containersModel, m_settings));
m_engine->rootContext()->setContextProperty("ImportController", m_importController.get());