From 97842e82f27ab4cb1746962f2528b3c20f1a5132 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 3 Jun 2024 21:08:59 -0700 Subject: [PATCH] Make AVRemover 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 fe6ce046..c435956b 100644 --- a/scripts/auto_repairs.py +++ b/scripts/auto_repairs.py @@ -67,6 +67,7 @@ BASE_MENUS = { }, 'Options': ( MenuEntry('Kill Explorer', selected=False), + MenuEntry('Run AVRemover (once)'), MenuEntry('Run RKill'), MenuEntry('Sync Clock'), MenuEntry('Use Autologon', selected=False), diff --git a/scripts/wk/repairs/win.py b/scripts/wk/repairs/win.py index fc4bd8e6..4b298a65 100644 --- a/scripts/wk/repairs/win.py +++ b/scripts/wk/repairs/win.py @@ -312,10 +312,11 @@ def init_session(options) -> None: set_timezone(WINDOWS_TIME_ZONE) # One-time tasks - TRY_PRINT.run( - 'Run AVRemover...', run_tool, 'AVRemover', 'AVRemover', - download=True, msg_good='DONE', - ) + if options['Run AVRemover (once)']['Selected']: + TRY_PRINT.run( + 'Run AVRemover...', run_tool, 'AVRemover', 'AVRemover', + download=True, msg_good='DONE', + ) print('') reboot(30)