Merge pull request #347 from amnezia-vpn/bigfix/no_container_redirecteto_wizardeasy

redirected to pagesetupwizardeasy when none containers installed
This commit is contained in:
Nethius 2023-09-28 21:01:55 +03:00 committed by GitHub
commit 762018883f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 1 deletions

View file

@ -5,6 +5,7 @@ import QtQuick.Shapes
import Qt5Compat.GraphicalEffects
import ConnectionState 1.0
import PageEnum 1.0
Button {
id: root
@ -137,6 +138,13 @@ Button {
}
onClicked: {
if (!ContainersModel.isAnyContainerInstalled()) {
ServersModel.currentlyProcessedIndex = ServersModel.getDefaultServerIndex()
PageController.goToPage(PageEnum.PageSetupWizardEasy)
return
}
if (ConnectionController.isConnectionInProgress) {
ConnectionController.closeConnection()
} else if (ConnectionController.isConnected) {