Add context menu on breadcrumbs.

The only option is to reset the root directory.
This commit is contained in:
Shaun Reed 2026-02-01 18:52:11 -05:00
parent b9eee50e52
commit fdfc8d3fd8

View File

@ -59,6 +59,24 @@ SplitView {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
TapHandler {
acceptedButtons: Qt.RightButton
onSingleTapped: (eventPoint, button) => {
contextMenu.popup()
}
}
Menu {
id: contextMenu
Action {
text: qsTr("Reset root index")
onTriggered: {
console.log("Resetting root directory: " + clideTreeView.originalRootDirectory)
clideTreeView.rootDirectory = clideTreeView.originalRootDirectory
}
}
}
}
ClideTreeView {