mirror of
https://github.com/yattee/yattee.git
synced 2026-07-21 06:42:01 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user