mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Merge pull request #3349 from vitorpamplona/claude/epic-carson-wjc0xm
Fix bottom bar fallback to use default entries instead of empty list
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ class UiSharedPreferences(
|
||||
}
|
||||
|
||||
private fun decodeBottomBarItems(raw: String): List<BottomBarEntry>? {
|
||||
if (raw.isBlank()) return emptyList()
|
||||
if (raw.isBlank()) return DefaultBottomBarEntries
|
||||
// Current format: a JSON list of BottomBarEntry (built-ins + favorites).
|
||||
runCatching { return JsonMapper.fromJson<List<BottomBarEntry>>(raw) }
|
||||
// Configs written before the stable @SerialName discriminators used the fully-qualified
|
||||
|
||||
Reference in New Issue
Block a user