Skip to content

Commit e0c88d1

Browse files
committed
Fix for file browser on windows, thumbnails not loading (#282)
Signed-off-by: Ted Waine <ted.waine@gmail.com>
1 parent abe2d2a commit e0c88d1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/plugin/utility/filesystem_browser/FileSystemBrowser/xstudio/FSThumbItem.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ Item {
7373

7474
Image {
7575
anchors.fill: parent
76-
property var thumbSource: "image://thumbnail/file://" + thumbnailFrame
76+
property var thumbSource: thumbSrcRoot + thumbnailFrame
77+
onThumbSourceChanged: console.log("thumbSource", thumbSource)
7778
source: (visibleInFlickable || loaded) ? thumbSource : ""
7879
fillMode: Image.PreserveAspectFit
7980
asynchronous: true

src/plugin/utility/filesystem_browser/FileSystemBrowser/xstudio/FileSystemBrowser.qml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Item {
3131

3232
property var previewing: previewMediaUuid != helpers.QVariantFromUuidString("") ? previewMediaUuid == currentPlayhead.mediaUuid : false
3333

34+
# uri requires triple slash before drive letter on Windows, since this is the root.
35+
property var thumbSrcRoot: Qt.platform.os === "windows" ? "image://thumbnail/file:///" : "image://thumbnail/file://"
36+
3437
FileSystemBrowserScanResultsModel {
3538
id: __scanResultsModel
3639
viewMode: root.viewMode

0 commit comments

Comments
 (0)