mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-20 02:00:55 +07:00
fixed screen fade when switching from PageSetupWizardStart to PageStart
This commit is contained in:
@@ -14,6 +14,8 @@ import "../Components"
|
||||
PageType {
|
||||
id: root
|
||||
|
||||
property bool isControlsDisabled: false
|
||||
|
||||
Connections {
|
||||
target: PageController
|
||||
|
||||
@@ -32,14 +34,8 @@ PageType {
|
||||
tabBarStackView.push(pagePath, { "objectName" : pagePath }, StackView.PushTransition)
|
||||
}
|
||||
|
||||
function onShowBusyIndicator(visible) {
|
||||
busyIndicator.visible = visible
|
||||
tabBarStackView.enabled = !visible
|
||||
tabBar.enabled = !visible
|
||||
}
|
||||
|
||||
function onDisableControls(disabled) {
|
||||
tabBar.enabled = !disabled
|
||||
isControlsDisabled = disabled
|
||||
}
|
||||
|
||||
function onClosePage() {
|
||||
@@ -67,7 +63,7 @@ PageType {
|
||||
}
|
||||
|
||||
function onEscapePressed() {
|
||||
if (!tabBar.enabled || busyIndicator.visible) {
|
||||
if (root.isControlsDisabled) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -136,6 +132,8 @@ PageType {
|
||||
width: parent.width
|
||||
height: root.height - tabBar.implicitHeight
|
||||
|
||||
enabled: !root.isControlsDisabled
|
||||
|
||||
function goToTabBarPage(page) {
|
||||
connectionTypeSelection.close()
|
||||
|
||||
@@ -165,6 +163,8 @@ PageType {
|
||||
leftPadding: 96
|
||||
rightPadding: 96
|
||||
|
||||
enabled: !root.isControlsDisabled
|
||||
|
||||
background: Shape {
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
@@ -236,12 +236,6 @@ PageType {
|
||||
}
|
||||
}
|
||||
|
||||
BusyIndicatorType {
|
||||
id: busyIndicator
|
||||
anchors.centerIn: parent
|
||||
z: 1
|
||||
}
|
||||
|
||||
ConnectionTypeSelectionDrawer {
|
||||
id: connectionTypeSelection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user