Fixes Parsing in Missing Configs

This commit is contained in:
CooperWang0912 2026-07-23 18:14:37 +08:00
parent ceb615f68b
commit b5af3a1054
1 changed files with 4 additions and 1 deletions

View File

@ -297,11 +297,14 @@ class GlobalMenu(AbstractMenu[None]):
tr('The selected desktop profile requires a regular user to log in via the greeter'),
)
raw_options = {o.key: o.text for o in self._get_menu_options(wrap_actions=False) if o.key is not None}
for item in self._item_group.items:
if item.mandatory:
assert item.key is not None
if not check(item.key):
missing.add(item.text)
raw_title = raw_options.get(item.key, item.text)
missing.add(raw_title)
return list(missing)