Fix Auto Setup selections under Windows 11

This commit is contained in:
2Shirt 2022-10-19 23:30:20 -07:00
parent 8c03530ec5
commit df6d3d4a24
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -163,11 +163,6 @@ def build_menus(base_menus, title, presets):
MENU_PRESETS.add_action('Quit')
MENU_PRESETS.update()
# Disable entries incompatible with Windows 11
if OS_VERSION == 11:
for group_name, entry_name in DISABLED_ENTRIES_WINDOWS_11.items():
menus[group_name].options[entry_name]['Disabled'] = True
# Done
return menus
@ -230,6 +225,12 @@ def load_preset(menus, presets, title, enable_menu_exit=True):
# Re-enable Main Menu action if disabled
MENU_PRESETS.actions['Main Menu'].update({'Disabled':False, 'Hidden':False})
# Disable entries incompatible with Windows 11
if OS_VERSION == 11:
for group_name, entry_name in DISABLED_ENTRIES_WINDOWS_11.items():
menus[group_name].options[entry_name]['Disabled'] = True
menus[group_name].options[entry_name]['Selected'] = False
def run_auto_setup(base_menus, presets):
"""Run Auto Setup."""