mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-19 02:00:45 +07:00
fixed display of cancel button on install/uninstall pages
This commit is contained in:
@@ -15,6 +15,7 @@ PageType {
|
||||
id: root
|
||||
|
||||
property bool isControlsDisabled: false
|
||||
property bool isTabBarDisabled: false
|
||||
|
||||
Connections {
|
||||
target: PageController
|
||||
@@ -38,6 +39,10 @@ PageType {
|
||||
isControlsDisabled = disabled
|
||||
}
|
||||
|
||||
function onDisableTabBar(disabled) {
|
||||
isTabBarDisabled = disabled
|
||||
}
|
||||
|
||||
function onClosePage() {
|
||||
if (tabBarStackView.depth <= 1) {
|
||||
return
|
||||
@@ -63,7 +68,7 @@ PageType {
|
||||
}
|
||||
|
||||
function onEscapePressed() {
|
||||
if (root.isControlsDisabled) {
|
||||
if (root.isControlsDisabled || root.isTabBarDisabled) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -179,7 +184,7 @@ PageType {
|
||||
leftPadding: 96
|
||||
rightPadding: 96
|
||||
|
||||
enabled: !root.isControlsDisabled
|
||||
enabled: !root.isControlsDisabled && !root.isTabBarDisabled
|
||||
|
||||
background: Shape {
|
||||
width: parent.width
|
||||
|
||||
Reference in New Issue
Block a user