Fix Auto Setup selections under Windows 11
This commit is contained in:
parent
8c03530ec5
commit
df6d3d4a24
1 changed files with 6 additions and 5 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue