Fix menu checkmark under macOS

This commit is contained in:
2Shirt 2019-09-13 21:02:56 -07:00
parent 3d95d9c1a1
commit 8d9e264efc
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -124,7 +124,9 @@ class Menu():
# pylint: disable=no-self-use
"""Format display name based on details and args, returns str."""
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']
color_code = COLORS['YELLOW'] if disabled else ''
display_name = f'{color_code}{index if index else name[:1].upper()}: '