From 2fc1a950828bf9f1977e31e7b0cdaf5e991adbbd Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 7 Nov 2026 12:44:07 +0100 Subject: sonix: say why a folder of non-music files looks empty SonixLink's browse lists only folders and playable files, so Bootlogo or Ebook read as empty. The Folders tab now says so and links to Wi-Fi transfer. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/sonix/SonixFolders.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'desktop/modules/sonix/SonixFolders.qml') diff --git a/desktop/modules/sonix/SonixFolders.qml b/desktop/modules/sonix/SonixFolders.qml index 8d94a73..486a5c2 100644 --- a/desktop/modules/sonix/SonixFolders.qml +++ b/desktop/modules/sonix/SonixFolders.qml @@ -186,6 +186,25 @@ Column { } } + // SonixLink lists only folders and what the player can play, so a folder + // of pictures or books reads as empty. Wi-Fi transfer shows everything. + Column { + visible: fo.root !== "" && fo.entries.length === 0 && fo.error === "" + width: fo.width + spacing: 6 + Text { + width: parent.width + wrapMode: Text.Wrap + text: "Only music files are listed here. Other files: Open Wi-Fi transfer (its page must be open on the player)." + font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 3 } + color: Theme.subtext + } + Button { + text: "Open Wi-Fi transfer" + onClicked: Qt.openUrlExternally(`http://${Sonix.host}/`) + } + } + Text { textFormat: Text.PlainText visible: fo.notice !== "" && fo.error === "" -- cgit v1.2.3