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:
parent
919a435a6b
commit
f6a031f584
|
|
@ -235,7 +235,7 @@ async def select_bootloader(
|
|||
async def select_plymouth_theme(preset: PlymouthTheme | None = None) -> PlymouthTheme | None:
|
||||
items = [MenuItem(t.value, value=t) for t in PlymouthTheme]
|
||||
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](
|
||||
group,
|
||||
|
|
|
|||
|
|
@ -209,6 +209,9 @@ msgstr ""
|
|||
msgid "Install to removable location"
|
||||
msgstr ""
|
||||
|
||||
msgid "Plymouth"
|
||||
msgstr ""
|
||||
|
||||
msgid "Will install to /EFI/BOOT/ (removable location, safe default)"
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -248,6 +251,9 @@ msgstr ""
|
|||
msgid "UEFI is not detected and some options are disabled"
|
||||
msgstr ""
|
||||
|
||||
msgid "Select Plymouth theme"
|
||||
msgstr ""
|
||||
|
||||
msgid "The specified configuration will be applied"
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -882,6 +888,10 @@ msgstr ""
|
|||
msgid "Removable"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Plymouth \"{}\""
|
||||
msgstr ""
|
||||
|
||||
msgid "Use a best-effort default partition layout"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue