diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-07 12:44:07 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-07 12:44:07 +0100 |
| commit | 2fc1a950828bf9f1977e31e7b0cdaf5e991adbbd (patch) | |
| tree | c3699e5fc8780b9f637f7be7fe292cfc857d7314 /desktop/modules/sonix/SonixFolders.qml | |
| parent | 3d045076d49ee7cc074f670806a823099ea9fb09 (diff) | |
| download | quickshell-2fc1a950828bf9f1977e31e7b0cdaf5e991adbbd.tar.gz quickshell-2fc1a950828bf9f1977e31e7b0cdaf5e991adbbd.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/sonix/SonixFolders.qml')
| -rw-r--r-- | desktop/modules/sonix/SonixFolders.qml | 19 |
1 files changed, 19 insertions, 0 deletions
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 === "" |
