Update components.py

This commit is contained in:
CooperWang0912 2026-07-31 16:12:03 +08:00
parent 201bb8ca46
commit 4a48510f8f
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ def _get_status_prefix(item: MenuItem) -> str:
if item.read_only or is_special_key:
return ''
if item.has_value() and "None" not in str(item.value) and "[]" not in str(item.value):
if item.has_value() and 'None' not in str(item.value) and '[]' not in str(item.value):
return ' '
elif 'Configuration' not in str(item.value):
return ' '
else:
return '[bold yellow]![/bold yellow] '