Merge branch 'dev' of github.com:amnezia-vpn/amnezia-client into fix/drawerTypePositioning

This commit is contained in:
vladimir.kuznetsov 2023-10-03 19:00:58 +05:00
commit 52124b15e8
9 changed files with 138 additions and 57 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) {