This commit is contained in:
2026-01-31 12:08:24 -05:00
parent 75889f2023
commit 886c36c66b
2 changed files with 41 additions and 17 deletions

View File

@@ -23,14 +23,16 @@ Rectangle {
property int lastIndex: -1
model: FileSystemSortProxyModel
model: FileSystemSortProxyModel {
id: fs
}
anchors.fill: parent
boundsBehavior: Flickable.StopAtBounds
boundsMovement: Flickable.StopAtBounds
clip: true
Component.onCompleted: {
FileSystem.setDirectory(root.rootDirectory)
fs.setDirectory(root.rootDirectory)
fileSystemTreeView.expandRecursively(0, -1)
}
@@ -123,13 +125,13 @@ Rectangle {
text: qsTr("Set as root index")
onTriggered: {
console.log("Setting directory: " + treeDelegate.filePath)
FileSystem.setDirectory(treeDelegate.filePath)
FileSystemSortProxyModel.setDirectory(treeDelegate.filePath)
}
}
Action {
text: qsTr("Reset root index")
onTriggered: {
FileSystem.setDirectory("")
FileSystemSortProxyModel.setDirectory("")
}
}
}