mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
ServerContainers qml ui started to fix
This commit is contained in:
@@ -74,7 +74,7 @@ UiLogic::UiLogic(QObject *parent) :
|
||||
m_trayActionConnectEnabled{true},
|
||||
m_dialogConnectErrorText{}
|
||||
{
|
||||
m_allContainersModel = new AllContainersModel(this);
|
||||
m_containersModel = new ContainersModel(this);
|
||||
m_vpnConnection = new VpnConnection(this);
|
||||
|
||||
m_appSettingsLogic = new AppSettingsLogic(this);
|
||||
@@ -123,6 +123,11 @@ void UiLogic::initalizeUiLogic()
|
||||
goToPage(Page::Vpn, true, false);
|
||||
}
|
||||
|
||||
selectedServerIndex = m_settings.defaultServerIndex();
|
||||
goToPage(Page::ServerContainers, true, false);
|
||||
//goToPage(Page::NewServerProtocols, true, false);
|
||||
|
||||
|
||||
// //ui->pushButton_general_settings_exit->hide();
|
||||
|
||||
|
||||
@@ -341,6 +346,17 @@ void UiLogic::onCloseWindow()
|
||||
}
|
||||
}
|
||||
|
||||
QString UiLogic::containerName(int container)
|
||||
{
|
||||
return amnezia::containerHumanNames().value(static_cast<DockerContainer>(container));
|
||||
}
|
||||
|
||||
QString UiLogic::containerDesc(int container)
|
||||
{
|
||||
return amnezia::containerDescriptions().value(static_cast<DockerContainer>(container));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//void UiLogic::showEvent(QShowEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user