updated translated-text to connectStatusText in ConnectionController
This commit is contained in:
parent
1357c4a309
commit
9377a0b545
4 changed files with 5 additions and 4 deletions
|
@ -330,6 +330,8 @@ void AmneziaApplication::initControllers()
|
|||
m_connectionController.reset(new ConnectionController(m_serversModel, m_containersModel, m_vpnConnection));
|
||||
m_engine->rootContext()->setContextProperty("ConnectionController", m_connectionController.get());
|
||||
|
||||
connect(this, &AmneziaApplication::translationsUpdated, m_connectionController.get(), &ConnectionController::onTranslationsUpdated);
|
||||
|
||||
m_pageController.reset(new PageController(m_serversModel, m_settings));
|
||||
m_engine->rootContext()->setContextProperty("PageController", m_pageController.get());
|
||||
|
||||
|
|
|
@ -130,8 +130,9 @@ void ConnectionController::onCurrentContainerUpdated()
|
|||
}
|
||||
}
|
||||
|
||||
void ConnectionController::translateMemoryText()
|
||||
void ConnectionController::onTranslationsUpdated()
|
||||
{
|
||||
// get translated text of current state
|
||||
onConnectionStateChanged(getCurrentConnectionState());
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ public slots:
|
|||
|
||||
void onCurrentContainerUpdated();
|
||||
|
||||
void translateMemoryText();
|
||||
void onTranslationsUpdated();
|
||||
|
||||
signals:
|
||||
void connectToVpn(int serverIndex, const ServerCredentials &credentials, DockerContainer container,
|
||||
|
|
|
@ -171,8 +171,6 @@ PageType {
|
|||
onClicked: {
|
||||
tabBarStackView.goToTabBarPage(PageEnum.PageHome)
|
||||
ServersModel.currentlyProcessedIndex = ServersModel.defaultIndex
|
||||
|
||||
ConnectionController.translateMemoryText()
|
||||
}
|
||||
}
|
||||
TabImageButtonType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue