ServerContainers qml ui started to fix
This commit is contained in:
parent
40fa2d6779
commit
542f363e92
17 changed files with 837 additions and 507 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue