mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
Solve bug to get the same index action when stackview is changed without using sidebar
This commit is contained in:
parent
27593633fc
commit
356d3ab09f
@ -44,14 +44,16 @@ Drawer
|
||||
|
||||
MouseArea
|
||||
{
|
||||
property var lastItem
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
onClicked:
|
||||
{
|
||||
if (listView.currentIndex != index)
|
||||
if (listView.currentIndex != index || stackView.currentItem != lastItem)
|
||||
{
|
||||
listView.currentIndex = index
|
||||
menuList.actions[model.title]();
|
||||
lastItem = stackView.currentItem
|
||||
// titleLabel.text = model.title
|
||||
// stackView.replace(model.source)
|
||||
}
|
||||
@ -87,6 +89,7 @@ Drawer
|
||||
model: ListModel
|
||||
{
|
||||
id: menuList
|
||||
|
||||
property var actions :
|
||||
{
|
||||
"Trusted Nodes": function()
|
||||
@ -95,7 +98,7 @@ Drawer
|
||||
},
|
||||
"Search Contacts": function(){
|
||||
stackView.push("qrc:/Contacts.qml",
|
||||
{'searching': true} )
|
||||
{'searching': true} )
|
||||
|
||||
},
|
||||
"Paste Link": function()
|
||||
|
Loading…
Reference in New Issue
Block a user