mobile: fix implementation of menu back feature

With the updates to Kirigami I slightly modified the hack that we use to
implement that, as a result we call pop() directly on the globalDrawer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-11-25 09:38:32 -08:00
parent 24bb4d7677
commit 241d6105c0

View file

@ -271,7 +271,7 @@ Kirigami.ApplicationWindow {
name: ":/go-previous-symbolic"
}
text: qsTr("Back")
onTriggered: globalDrawer.scrollViewItem.pop()
onTriggered: globalDrawer.pop()
}
Kirigami.Action {
icon {
@ -380,7 +380,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
name: ":/go-previous-symbolic"
}
text: qsTr("Back")
onTriggered: globalDrawer.scrollViewItem.pop()
onTriggered: globalDrawer.pop()
}
Kirigami.Action {
icon {
@ -453,7 +453,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
name: ":/go-previous-symbolic"
}
text: qsTr("Back")
onTriggered: globalDrawer.scrollViewItem.pop()
onTriggered: globalDrawer.pop()
}
Kirigami.Action {
icon {
@ -511,7 +511,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
name: ":/go-previous-symbolic"
}
text: qsTr("Back")
onTriggered: globalDrawer.scrollViewItem.pop()
onTriggered: globalDrawer.pop()
}
Kirigami.Action {
text: qsTr("App log")
@ -570,7 +570,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
name: ":/go-previous-symbolic"
}
text: qsTr("Back")
onTriggered: globalDrawer.scrollViewItem.pop()
onTriggered: globalDrawer.pop()
}
Kirigami.Action {
text: qsTr("Setup")