Fix native language codes usage in "browse languages"

The native language code returned by the browser could be a code that is not included in the defined ISOLanguages object. E.g. "en-GB" while the object only has "en".

This caused the "English" browse language to not be able to get selected as an allowed language.
This commit is contained in:
schroda
2026-07-06 23:57:04 +02:00
parent 4629b4f868
commit 3112f7c47e
3 changed files with 21 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- (**Reader**) Fix preserving scroll position
- (**Reader**) Fix missing gap between chapters in continuous vertical and horizontal reading modes with disabled transition page
- (**Browse**) Fix showing only nsfw sources in the browse source page when the "show nsfw" setting is disabled
- (**Browse**) Fix not being able to select some languages as an "allowed language" in some situations (e.g., browser native language "en-GB" prevented "English" from getting visually shown as enabled)
- (**Manga/Library**) Fix mark as read/unread option not being disabled for manga without any chapters
- (**Manga/Library**) Fix delete/download option not being disabled for manga without any chapters
- (**Source**) Fix changing configuration settings with multi option selection where a selected option does not exist anymore. (E.g. Komgas "Default libraries" setting, still having a library selected that has been deleted)