fixed display of cancel button on install/uninstall pages

This commit is contained in:
vladimir.kuznetsov 2024-03-31 12:40:42 +05:00
parent db8d966fac
commit e9468a4c2f
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) {
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