fix disappearing all_colors for dark theme on upgrade from 2.3

This commit is contained in:
Helium314 2025-03-14 23:21:41 +01:00
parent d3401e5c04
commit 55259b2915

View file

@ -232,7 +232,7 @@ fun checkVersionUpgrade(context: Context) {
KeyboardTheme.writeUserMoreColors(prefs, themeNameNight, moreColorsNight)
}
if (prefs.contains("theme_dark_color_all_colors")) {
val allColorsNight = readAllColorsMap(false)
val allColorsNight = readAllColorsMap(true)
prefs.edit().remove("theme_dark_color_all_colors").apply()
KeyboardTheme.writeUserAllColors(prefs, themeNameNight, allColorsNight)
}