Commit 5fb0980f authored by Carson Black's avatar Carson Black

Use checked instead of disabled to show current view

BUG: 411456
parent a41e3343
......@@ -360,7 +360,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
iconName: "go-home"
text: "Regular View"
enabled: swipe.currentIndex != 0
checked: swipe.currentIndex == 0
onTriggered: {
swipe.currentIndex = 0
}
......@@ -368,7 +368,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
iconName: "zoom-out"
text: "Small View"
enabled: swipe.currentIndex != 1
checked: swipe.currentIndex == 1
onTriggered: {
swipe.currentIndex = 1
}
......@@ -376,7 +376,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
iconName: "internet-services"
text: "HIG View"
enabled: swipe.currentIndex != 2
checked: swipe.currentIndex == 2
onTriggered: {
swipe.currentIndex = 2
}
......@@ -384,7 +384,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
iconName: "zoom-in"
text: "Large View"
enabled: swipe.currentIndex != 3
checked: swipe.currentIndex == 3
onTriggered: {
swipe.currentIndex = 3
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment