mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Merge pull request #356 from amnezia-vpn/bugfix/buton_set_up_later_visible_logic
updated visible logic of button 'set up later'
This commit is contained in:
@@ -139,6 +139,8 @@ Button {
|
||||
|
||||
onClicked: {
|
||||
if (!ContainersModel.isAnyContainerInstalled()) {
|
||||
PageController.setTriggeredBtConnectButton(true)
|
||||
|
||||
ServersModel.currentlyProcessedIndex = ServersModel.getDefaultServerIndex()
|
||||
PageController.goToPage(PageEnum.PageSetupWizardEasy)
|
||||
|
||||
|
||||
@@ -183,7 +183,16 @@ PageType {
|
||||
textColor: "#D7D8DB"
|
||||
borderWidth: 1
|
||||
|
||||
visible: ContainersModel.isAnyContainerInstalled()
|
||||
visible: {
|
||||
if (PageController.isTriggeredByConnectButton()) {
|
||||
PageController.setTriggeredBtConnectButton(false)
|
||||
|
||||
return ContainersModel.isAnyContainerInstalled()
|
||||
}
|
||||
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
text: qsTr("Set up later")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user