Added Checks for Special Keys

This commit is contained in:
CooperWang0912 2026-07-31 14:50:52 +08:00
parent 50f7a63603
commit 52cd08a0c3
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ def _get_status_prefix(item: MenuItem) -> str:
- ! (Yellow) for unconfigured items
"""
is_special_key = '__config__' in item.key or item.key == '' + tr('Back')
if item.read_only or is_special_key:
return ''
if item.has_value():
return ' '
else: