Merge pull request #718 from amnezia-vpn/bugfix/cancel-button-on-install-page

fixed display of cancel button on install/uninstall pages
This commit is contained in:
pokamest 2024-03-31 16:03:32 +01:00 committed by GitHub
commit e7bd24f065
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 6 deletions

View file

@ -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) {
PageController.hideWindow()
@ -64,7 +69,7 @@ PageType {
}
function onEscapePressed() {
if (root.isControlsDisabled) {
if (root.isControlsDisabled || root.isTabBarDisabled) {
return
}
@ -180,7 +185,7 @@ PageType {
leftPadding: 96
rightPadding: 96
enabled: !root.isControlsDisabled
enabled: !root.isControlsDisabled && !root.isTabBarDisabled
background: Shape {
width: parent.width