feat(qt): featured artists on track rows are on by default

The preference stays (opt-out); an absent key reads as on so rows never
flash without the names before the first settings snapshot.

cc
This commit is contained in:
vicrodh committed 2026-09-13 09:20:21 -06:00
1 parent 29710342a2
commit 71eee01e4c
11 files changed
+40 -38

No files matched your search

+6 -4
View File
@@ -507,17 +507,19 @@ Rectangle {
}
return false
}
// "Show featured artists in track rows" (AppearanceSettings). Same read
// as playIndicatorAnim: the settings document republishes on every
// "Show featured artists in track rows" (AppearanceSettings), ON by
// default: only an explicit false turns it off, so the rows never flash
// without names before the first settings snapshot lands. Same read as
// playIndicatorAnim otherwise: the settings document republishes on every
// settings write, which is the only time this re-evaluates.
readonly property bool showFeaturedArtists: {
var raw = QbzBridge.settingsJson
if (raw && raw.length > 2) {
try {
return JSON.parse(raw).showFeaturedArtists === true
return JSON.parse(raw).showFeaturedArtists !== false
} catch (e) { /* fall through */ }
}
return false
return true
}
// The animated eq bars carry the playing state in the play cell when the
// pref is ON (TrackPlayCell.slint:99-100 `show-bars`): only while this
@@ -336,7 +336,7 @@ Column {
}
SettingRow { kioskHost: root.kioskHost;
label: QbzSession.tr("Show featured artists in track rows", QbzSession.trRev)
description: QbzSession.tr("List the track's featured performers after the main artist on Qobuz track rows, comma separated. Off by default.", QbzSession.trRev)
description: QbzSession.tr("List the track's featured performers after the main artist on Qobuz track rows, comma separated. Each name is a link. On by default.", QbzSession.trRev)
QbzToggle { kioskHost: root.kioskHost;
checked: root.doc.showFeaturedArtists === true
onToggled: function (v) { QbzBridge.settingsBool("show-featured-artists", v) }