Commit 735bed5f authored by camilo higuita's avatar camilo higuita

search for the currentpath in the sidebar

parent 1de5eab2
......@@ -36,8 +36,10 @@ Maui.FileBrowser
terminal.session.sendText("cd '" + String(currentPath).replace("file://", "") + "'\n")
for(var i = 0; i < placesSidebar.count; i++)
if(currentPath === placesSidebar.list.get(i).path)
if(String(currentPath) === placesSidebar.list.get(i).path)
{
placesSidebar.currentIndex = i
}
}
onItemClicked: openItem(index)
......
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