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

@@ -4216,6 +4216,17 @@
}
}
},
"home.settings.shortcuts.color" : {
"comment" : "Label/header for the card color emphasis picker",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Color"
}
}
}
},
"home.settings.shortcuts.header" : {
"comment" : "Header for shortcuts section in library settings",
"localizations" : {
@@ -4238,28 +4249,6 @@
}
}
},
"home.settings.shortcuts.color" : {
"comment" : "Label/header for the card color emphasis picker",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Color"
}
}
}
},
"home.settings.shortcuts.layout" : {
"comment" : "Header for the card layout picker (Compact/Regular)",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Layout"
}
}
}
},
"home.settings.shortcuts.palette" : {
"comment" : "Label/header for the colorful palette picker",
"localizations" : {
@@ -4406,39 +4395,6 @@
}
}
},
"home.shortcuts.layout.cards" : {
"comment" : "Cards layout option for library shortcuts",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Cards"
}
}
}
},
"home.shortcuts.layout.list" : {
"comment" : "List layout option for library shortcuts",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "List"
}
}
}
},
"home.shortcuts.palette.berry" : {
"comment" : "Colorful palette name",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Berry"
}
}
}
},
"home.shortcuts.color.soft" : {
"comment" : "Soft card color option (tinted background)",
"localizations" : {
@@ -4461,6 +4417,28 @@
}
}
},
"home.shortcuts.layout.cards" : {
"comment" : "Cards layout option for library shortcuts",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Cards"
}
}
}
},
"home.shortcuts.layout.list" : {
"comment" : "List layout option for library shortcuts",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "List"
}
}
}
},
"home.shortcuts.palette.accent" : {
"comment" : "Palette name for the uniform accent-color fill",
"localizations" : {
@@ -4472,6 +4450,17 @@
}
}
},
"home.shortcuts.palette.berry" : {
"comment" : "Colorful palette name",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Berry"
}
}
}
},
"home.shortcuts.palette.classic" : {
"comment" : "Colorful palette name",
"localizations" : {
@@ -5512,6 +5501,7 @@
}
},
"mediaSources.browse %@" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {