diff --git a/scripts/wk/cfg/launchers.py b/scripts/wk/cfg/launchers.py index 70ec88ff..47b465b3 100644 --- a/scripts/wk/cfg/launchers.py +++ b/scripts/wk/cfg/launchers.py @@ -18,8 +18,8 @@ LAUNCHERS = { }, '2) Windows Updates': { 'L_TYPE': 'Executable', - 'L_PATH': '.', - 'L_ITEM': 'control', + 'L_PATH': r'%SystemRoot%\System32', + 'L_ITEM': 'control.exe', 'L_ARGS': 'update', 'L_ELEV': 'True', }, @@ -81,6 +81,24 @@ LAUNCHERS = { 'L_PATH': 'ConEmu', 'L_ITEM': 'ConEmu.exe', }, + 'Debug Console (Command Prompt)': { + 'L_TYPE': 'Executable', + 'L_PATH': 'ConEmu', + 'L_ITEM': 'ConEmu.exe', + 'L_ARGS': r'-Dir %bin%\Scripts', + 'L_ELEV': 'True', + }, + 'Debug Console (Python)': { + 'L_TYPE': 'Executable', + 'L_PATH': 'ConEmu', + 'L_ITEM': 'ConEmu.exe', + 'L_ARGS': r'-Dir %bin%\Scripts -Run ..\Python\x%ARCH%\python.exe -i embedded_python_env.py', + 'L_ELEV': 'True', + 'Extra Code': [ + 'set ARCH=32', + 'if /i "%PROCESSOR_ARCHITECTURE%" == "AMD64" set "ARCH=64"', + ], + }, 'ERUNT': { 'L_TYPE': 'Executable', 'L_PATH': 'erunt', @@ -309,17 +327,6 @@ LAUNCHERS = { 'L_PATH': 'WinSCP', 'L_ITEM': 'WinSCP.exe', }, - 'WizardKit Debug Console': { - 'L_TYPE': 'Executable', - 'L_PATH': 'ConEmu', - 'L_ITEM': 'ConEmu.exe', - 'L_ARGS': r'-Dir %bin%\Scripts -Run ..\Python\x%ARCH%\python.exe -i embedded_python_env.py', - 'L_ELEV': 'True', - 'Extra Code': [ - 'set ARCH=32', - 'if /i "%PROCESSOR_ARCHITECTURE%" == "AMD64" set "ARCH=64"', - ], - }, 'WizTree': { 'L_TYPE': 'Executable', 'L_PATH': 'WizTree', diff --git a/scripts/wk/clone/ddrescue.py b/scripts/wk/clone/ddrescue.py index 73ed1b4c..7bf41495 100644 --- a/scripts/wk/clone/ddrescue.py +++ b/scripts/wk/clone/ddrescue.py @@ -767,6 +767,10 @@ class State(): self.destination = select_path('Destination') self.update_top_panes() + # Update details + self.source.update_details(skip_children=False) + self.destination.update_details(skip_children=False) + # Confirmation #1 advanced_selection = False try: diff --git a/scripts/wk/setup/win.py b/scripts/wk/setup/win.py index 0dc7cb8c..f1a62438 100644 --- a/scripts/wk/setup/win.py +++ b/scripts/wk/setup/win.py @@ -168,11 +168,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 @@ -279,6 +274,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."""