Added Checks for Special Keys
This commit is contained in:
parent
50f7a63603
commit
52cd08a0c3
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue