Skip to content

Commit

Permalink
Merge pull request #393 from amnezia-vpn/bugfix/return-after-installa…
Browse files Browse the repository at this point in the history
…tion

fixed page return after installation
  • Loading branch information
pokamest committed Oct 26, 2023
2 parents e749cc7 + 6a12cad commit 7f2cf70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/ui/qml/Pages2/PageHome.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PageType {
function onRestorePageHomeState(isContainerInstalled) {
buttonContent.state = "expanded"
if (isContainerInstalled) {
containersDropDown.menuVisible = true
containersDropDown.rootButtonClickedFunction()
}
}
function onForceCloseDrawer() {
Expand Down
12 changes: 3 additions & 9 deletions client/ui/qml/Pages2/PageSetupWizardInstalling.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@ PageType {
ContainersModel.setDefaultContainer(ContainersModel.getCurrentlyProcessedContainerIndex())
}

PageController.goToStartPage()
PageController.closePage() // close installing page
PageController.closePage() // close protocol settings page

if (stackView.currentItem.objectName === PageController.getPagePath(PageEnum.PageHome)) {
PageController.restorePageHomeState(true)
} else if (stackView.currentItem.objectName === PageController.getPagePath(PageEnum.PageSettings)) {
PageController.goToPage(PageEnum.PageSettingsServersList, false)
PageController.goToPage(PageEnum.PageSettingsServerInfo, false)
if (isServiceInstall) {
PageController.goToPageSettingsServerServices()
}
} else {
PageController.goToPage(PageEnum.PageHome)
}

PageController.showNotificationMessage(finishedMessage)
Expand Down

0 comments on commit 7f2cf70

Please sign in to comment.