From 9b6bfa27600561e442188213b14a5fc765cdfdb4 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 1 May 2021 20:01:01 -0600 Subject: [PATCH] Make Sync Clock optional --- scripts/auto_repairs.py | 1 + scripts/wk/repairs/win.py | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/auto_repairs.py b/scripts/auto_repairs.py index 06c4ba92..29846f01 100644 --- a/scripts/auto_repairs.py +++ b/scripts/auto_repairs.py @@ -90,6 +90,7 @@ BASE_MENUS = { MenuEntry('Kill Explorer'), MenuEntry('Run RKill'), MenuEntry('Run TDSSKiller (once)'), + MenuEntry('Sync Clock'), MenuEntry('Use Autologon'), ), 'Actions': ( diff --git a/scripts/wk/repairs/win.py b/scripts/wk/repairs/win.py index 2945b554..79424f5b 100644 --- a/scripts/wk/repairs/win.py +++ b/scripts/wk/repairs/win.py @@ -274,10 +274,11 @@ def init_run(options): if options['Kill Explorer']['Selected']: atexit.register(start_explorer) TRY_PRINT.run('Killing Explorer...', kill_explorer, msg_good='DONE') - TRY_PRINT.run( - 'Syncing Clock...', run_tool, 'Neutron', 'Neutron', - cbin=True, msg_good='DONE', - ) + if options['Sync Clock']['Selected']: + TRY_PRINT.run( + 'Syncing Clock...', run_tool, 'Neutron', 'Neutron', + cbin=True, msg_good='DONE', + ) if options['Run RKill']['Selected']: TRY_PRINT.run('Running RKill...', run_rkill, msg_good='DONE')