diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-07 12:26:11 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-07 12:26:11 +0100 |
| commit | 6dfbf712c8ad829d3f936e69a3e7fbadfc99c47a (patch) | |
| tree | 8dbd1277e7198e086cee49cd3832698582e1ccab /desktop/modules/sonix/SonixFolders.qml | |
| parent | 27e5bfb21627c73b53623c5ccbf93841a221bfb2 (diff) | |
| download | quickshell-6dfbf712c8ad829d3f936e69a3e7fbadfc99c47a.tar.gz quickshell-6dfbf712c8ad829d3f936e69a3e7fbadfc99c47a.zip | |
sonix: folders breadcrumbs read as a path from "SD card /"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/sonix/SonixFolders.qml')
| -rw-r--r-- | desktop/modules/sonix/SonixFolders.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/modules/sonix/SonixFolders.qml b/desktop/modules/sonix/SonixFolders.qml index 4f3f2d7..8d94a73 100644 --- a/desktop/modules/sonix/SonixFolders.qml +++ b/desktop/modules/sonix/SonixFolders.qml @@ -89,12 +89,14 @@ Column { width: fo.width spacing: 6 Repeater { + id: crumbList model: S.crumbs(fo.path, fo.root) delegate: Text { textFormat: Text.PlainText required property var modelData required property int index - text: (index > 0 ? "› " : "") + modelData.name + // A path: "SD card / A / B", the root carrying its own slash. + text: modelData.name + (index > 0 && index < crumbList.count - 1 ? " /" : "") font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } color: modelData.path === fo.path ? Theme.text : Theme.accent MouseArea { |
