mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
added a drawer to change the server name and moved the display of the exported config to a separate drawer
This commit is contained in:
@@ -61,7 +61,9 @@ void InstallController::installServer(DockerContainer container, QJsonObject& co
|
||||
void InstallController::installContainer(DockerContainer container, QJsonObject& config)
|
||||
{
|
||||
//todo check if container already installed
|
||||
ServerCredentials serverCredentials = m_serversModel->getCurrentlyProcessedServerCredentials();
|
||||
int serverIndex = m_serversModel->getCurrentlyProcessedServerIndex();
|
||||
ServerCredentials serverCredentials = qvariant_cast<ServerCredentials>(
|
||||
m_serversModel->data(serverIndex, ServersModel::ServersModelRoles::CredentialsRole));
|
||||
|
||||
ServerController serverController(m_settings);
|
||||
ErrorCode errorCode = serverController.setupContainer(serverCredentials, container, config);
|
||||
|
||||
Reference in New Issue
Block a user