fix(slint/discover): keep Qobuzissimes in the Home section cache
The configurator offers Qobuzissimes on the Home tab (in DEFAULT_PREFS.home, off by default), but Slice 2d had removed it from the Home cache, so enabling it rendered nothing (descriptors_for found no backing data and dropped it). Visibility is now governed by the prefs (off by default), so keep the data in the Home cache pool; enabling Qobuzissimes on Home now renders. cc
This commit is contained in:
1 file changed
+11
@@ -169,6 +169,17 @@ where
|
|||||||
"/discover/albumOfTheWeek",
|
"/discover/albumOfTheWeek",
|
||||||
containers.album_of_the_week,
|
containers.album_of_the_week,
|
||||||
);
|
);
|
||||||
|
// Qobuzissimes is OFF on the Home tab by DEFAULT (the prefs control
|
||||||
|
// visibility now), but the configurator OFFERS it on Home — so keep its data
|
||||||
|
// in the Home cache pool so enabling it actually renders. Visibility is
|
||||||
|
// governed by DEFAULT_PREFS (off), not by absence from the cache.
|
||||||
|
push_section(
|
||||||
|
&mut sections,
|
||||||
|
DiscoverySectionId::Qobuzissimes,
|
||||||
|
"Qobuzissimes",
|
||||||
|
"/discover/qobuzissims",
|
||||||
|
containers.qobuzissims,
|
||||||
|
);
|
||||||
|
|
||||||
// Capped at 24 (two carousel pages of 12) — the slim carousel
|
// Capped at 24 (two carousel pages of 12) — the slim carousel
|
||||||
// does not show beyond that.
|
// does not show beyond that.
|
||||||
|
|||||||
Reference in new issue
Block a user