Minor feature added.
This commit is contained in:
parent
962f49a3d0
commit
b0fc5d0728
|
@ -29,7 +29,7 @@ Item {
|
|||
anchors.fill: parent
|
||||
|
||||
onClicked: {
|
||||
if(page != null) {
|
||||
if(page != null && stackView.currentItem != page) {
|
||||
if(stackView.depth === 1) {
|
||||
stackView.replace(page)
|
||||
} else {
|
||||
|
|
|
@ -71,10 +71,21 @@ Item {
|
|||
Layout.fillHeight: true
|
||||
padding: 0
|
||||
|
||||
background: Rectangle {
|
||||
background: Item {
|
||||
anchors.fill: parent
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#eaeaea"
|
||||
}
|
||||
|
||||
Text {
|
||||
z: 10
|
||||
text: "Here? No, not here."
|
||||
anchors.centerIn: parent
|
||||
visible: listView.count === 0
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
id: listView
|
||||
width: parent.width
|
||||
|
|
Loading…
Reference in New Issue