aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop/modules/sonix/README.md4
-rw-r--r--desktop/modules/sonix/SonixFolders.qml19
2 files changed, 22 insertions, 1 deletions
diff --git a/desktop/modules/sonix/README.md b/desktop/modules/sonix/README.md
index 386a1a9..90cc2d9 100644
--- a/desktop/modules/sonix/README.md
+++ b/desktop/modules/sonix/README.md
@@ -39,7 +39,9 @@ Device: name, address, battery, the player's accent, the library and a
Rescan, what is playing, a link to Wi-Fi transfer and to the boot logo
page. Playlists: play, open, remove a track, new names. Folders: browse,
play a folder or a file, add either to a playlist; folder rows carry
-"folder" as their second line. The tab starts at the card root by browsing
+"folder" as their second line. SonixLink lists only folders and playable
+files, so a folder of pictures or books (Bootlogo, Ebook) reads as empty; the
+tab then says so and links to Wi-Fi transfer. The tab starts at the card root by browsing
with an empty path (the player answers `path=/` with plain text "outside
the card").
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 === ""