Fix Plymouth theme preset focus and add missing strings to base.pot (#4586)

select_plymouth_theme() compared enum item values against a raw string,
so the previously selected theme was never highlighted when reopening
the menu. Use set_focus_by_value() like other single-select menus.

Regenerate base.pot to pick up the three Plymouth strings introduced
in #4555.
This commit is contained in:
Softer 2026-06-12 21:57:32 +03:00 committed by GitHub
parent 919a435a6b
commit f6a031f584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -235,7 +235,7 @@ async def select_bootloader(
async def select_plymouth_theme(preset: PlymouthTheme | None = None) -> PlymouthTheme | None: async def select_plymouth_theme(preset: PlymouthTheme | None = None) -> PlymouthTheme | None:
items = [MenuItem(t.value, value=t) for t in PlymouthTheme] items = [MenuItem(t.value, value=t) for t in PlymouthTheme]
group = MenuItemGroup(items, sort_items=False) group = MenuItemGroup(items, sort_items=False)
group.set_selected_by_value(preset.value if preset else None) group.set_focus_by_value(preset)
result = await Selection[PlymouthTheme]( result = await Selection[PlymouthTheme](
group, group,

View File

@ -209,6 +209,9 @@ msgstr ""
msgid "Install to removable location" msgid "Install to removable location"
msgstr "" msgstr ""
msgid "Plymouth"
msgstr ""
msgid "Will install to /EFI/BOOT/ (removable location, safe default)" msgid "Will install to /EFI/BOOT/ (removable location, safe default)"
msgstr "" msgstr ""
@ -248,6 +251,9 @@ msgstr ""
msgid "UEFI is not detected and some options are disabled" msgid "UEFI is not detected and some options are disabled"
msgstr "" msgstr ""
msgid "Select Plymouth theme"
msgstr ""
msgid "The specified configuration will be applied" msgid "The specified configuration will be applied"
msgstr "" msgstr ""
@ -882,6 +888,10 @@ msgstr ""
msgid "Removable" msgid "Removable"
msgstr "" msgstr ""
#, python-brace-format
msgid "Plymouth \"{}\""
msgstr ""
msgid "Use a best-effort default partition layout" msgid "Use a best-effort default partition layout"
msgstr "" msgstr ""