Add ESET to selection questions

This commit is contained in:
2Shirt 2021-10-02 17:25:02 -06:00
parent 68418588b7
commit 6db1be4046
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 10 additions and 4 deletions

View file

@ -110,8 +110,8 @@ BASE_MENUS = {
),
'Install Software': (
MenuEntry('Visual C++ Runtimes', 'auto_install_vcredists'),
MenuEntry('ESET NOD32 AV', 'install_eset_nod32_av'),
MenuEntry('ESET NOD32 AV (MSP)', 'install_eset_nod32_av_msp'),
MenuEntry('ESET NOD32 AV', 'auto_install_eset_nod32_av', selected=False),
MenuEntry('ESET NOD32 AV (MSP)', 'auto_install_eset_nod32_av_msp', selected=False),
MenuEntry('Firefox', 'auto_install_firefox'),
MenuEntry('LibreOffice', 'auto_install_libreoffice', selected=False),
MenuEntry('Open Shell', 'auto_install_open_shell'),

View file

@ -387,8 +387,14 @@ def load_preset(menus, presets, title, enable_menu_exit=True):
clear_screen()
print_standard(f'{title}')
print('')
if selection[0] == 'Default' and ask('Install LibreOffice?'):
menus['Install Software'].options['LibreOffice']['Selected'] = True
if selection[0] == 'Default':
if ask('Install LibreOffice?'):
menus['Install Software'].options['LibreOffice']['Selected'] = True
if ask('Install ESET NOD32 AV?'):
option = 'ESET NOD32 AV'
if ask(' Use MSP settings?'):
option = f'{option} (MSP)'
menus['Install Software'].options[option]['Selected'] = True
# Re-enable Main Menu action if disabled
MENU_PRESETS.actions['Main Menu'].update({'Disabled':False, 'Hidden':False})