[graphics/koko/release/26.08] src/qml/gallery: NavigatorComponent: Fix error with non-URL paths
Oliver Beard <[email protected]> Tue, 4 Aug 2026 13:30:43 +0000 (UTC)
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 3394c5b05d34a03a5dc5ab4d748fe94c2e8e7220 by Oliver Beard.
Committed on 04/08/2026 at 13:25.
Pushed by olib into branch 'release/26.08'.
NavigatorComponent: Fix error with non-URL paths
Non-url paths require different handling.
M +2 -1 src/qml/gallery/NavigatorComponent.qml
https://invent.kde.org/graphics/koko/-/commit/3394c5b05d34a03a5dc5ab4d748fe94c2e8e7220
diff --git a/src/qml/gallery/NavigatorComponent.qml b/src/qml/gallery/NavigatorComponent.qml
index 07c56b37..648701c3 100644
--- a/src/qml/gallery/NavigatorComponent.qml
+++ b/src/qml/gallery/NavigatorComponent.qml
@@ -238,7 +238,8 @@ RowLayout {
icon.name: rootLocations[rootLocation].icon
text: root.galleryModel.titleForPath(rootLocations[rootLocation].path)
- font.bold: Koko.DirModelUtils.getUrlParts(root.path).length === 0
+ font.bold: navigatorRoot.isUrlNavigator ? Koko.DirModelUtils.getUrlParts(root.path).length === 0
+ : root.path.length === 0
onClicked: root.navigate(rootLocations[rootLocation].path)