Fix menu checkmark under macOS
This commit is contained in:
parent
3d95d9c1a1
commit
8d9e264efc
1 changed files with 3 additions and 1 deletions
|
|
@ -124,7 +124,9 @@ class Menu():
|
||||||
# pylint: disable=no-self-use
|
# pylint: disable=no-self-use
|
||||||
"""Format display name based on details and args, returns str."""
|
"""Format display name based on details and args, returns str."""
|
||||||
disabled = details.get('Disabled', False)
|
disabled = details.get('Disabled', False)
|
||||||
checkmark = '✓' if 'DISPLAY' in os.environ else '*'
|
checkmark = '*'
|
||||||
|
if 'DISPLAY' in os.environ or sys.platform == 'darwin':
|
||||||
|
checkmark = '✓'
|
||||||
clear_code = COLORS['CLEAR']
|
clear_code = COLORS['CLEAR']
|
||||||
color_code = COLORS['YELLOW'] if disabled else ''
|
color_code = COLORS['YELLOW'] if disabled else ''
|
||||||
display_name = f'{color_code}{index if index else name[:1].upper()}: '
|
display_name = f'{color_code}{index if index else name[:1].upper()}: '
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue