mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
updated translated-text to connectStatusText in ConnectionController
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user