supported container on connection (#736)
This commit is contained in:
parent
e39efb1d68
commit
10ea9b418a
7 changed files with 77 additions and 46 deletions
|
@ -62,6 +62,11 @@ void ConnectionController::openConnection()
|
|||
DockerContainer container =
|
||||
qvariant_cast<DockerContainer>(m_serversModel->data(serverIndex, ServersModel::Roles::DefaultContainerRole));
|
||||
|
||||
if (!m_containersModel->isSupportedByCurrentPlatform(container)) {
|
||||
emit connectionErrorOccurred(tr("The selected protocol is not supported on the current platform"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (container == DockerContainer::None) {
|
||||
emit connectionErrorOccurred(tr("VPN Protocols is not installed.\n Please install VPN container at first"));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue