Remove media sources as Home sections (shortcuts-only)

A media-source "section" only rendered as a full-width "Browse {name}"
link, identical for all source types and redundant with the shortcut
card. Remove it from the Available Sections add-list and clean up any
already-added media-source sections on load.

Keep HomeSectionItem.mediaSource as a decode-only case so existing saved
homeSectionOrder data (decoded all-or-nothing) still parses; strip those
entries via removeAllHomeMediaSourceSections(). Media-source shortcuts
are unchanged.
This commit is contained in:
Arkadiusz Fal
2026-06-11 20:16:00 +02:00
parent 8d556abd0b
commit d7df883d6f
5 changed files with 102 additions and 190 deletions

View File

@@ -435,6 +435,11 @@ enum HomeSectionItem: Codable, Hashable, Identifiable, Sendable {
case history
case downloads
case instanceContent(instanceID: UUID, contentType: InstanceContentType)
/// Legacy, decode-only. Media sources are shortcuts-only now a media-source
/// "section" was just a browse link. Kept so existing saved `homeSectionOrder`
/// data still decodes (the array decodes all-or-nothing); any such items are
/// stripped on load by `SettingsManager.removeAllHomeMediaSourceSections()`.
/// No longer user-addable and not rendered.
case mediaSource(sourceID: UUID)
var id: String {