From ee96dc087a78f25a65e3e83a248bc99462f3af10 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Wed, 15 Feb 2023 17:36:56 -0800 Subject: [PATCH] Fix disabling Open-Shell options under Windows 11 --- scripts/wk/cfg/setup.py | 4 ++-- scripts/wk/setup/win.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/wk/cfg/setup.py b/scripts/wk/cfg/setup.py index 86ba87ef..d5c1beaf 100644 --- a/scripts/wk/cfg/setup.py +++ b/scripts/wk/cfg/setup.py @@ -13,8 +13,8 @@ BROWSER_PATHS = { FAB_TIMEFRAME = 14 # If it's been at least this many days don't prompt for an AV scan DISABLED_ENTRIES_WINDOWS_11 = { # Group Name: Option Name - 'Install Software': 'Open Shell', - 'Configure System': 'Open Shell', + 'Install Software': 'Open-Shell', + 'Configure System': 'Open-Shell', } LIBREOFFICE_XCU_DATA = ''' diff --git a/scripts/wk/setup/win.py b/scripts/wk/setup/win.py index 1ea2c37d..98ff3277 100644 --- a/scripts/wk/setup/win.py +++ b/scripts/wk/setup/win.py @@ -247,7 +247,7 @@ def load_preset(menus, presets, title, enable_menu_exit=True): print('') if selection[0] == 'Default': # OpenShell - if ask('Install OpenShell?'): + if OS_VERSION != 11 and ask('Install OpenShell?'): menus['Install Software'].options['Open-Shell']['Selected'] = True menus['Configure System'].options['Open-Shell']['Selected'] = True