parent
011d96089b
commit
98fdb48a27
1 changed files with 9 additions and 5 deletions
|
|
@ -244,11 +244,15 @@ def init(menus):
|
|||
)
|
||||
|
||||
# Check if autologon is needed
|
||||
if not session_started and is_autologon_enabled():
|
||||
if not session_started:
|
||||
if is_autologon_enabled():
|
||||
LOG.warning('Skipping Autologon to preserve current settings.')
|
||||
menus['Options'].options['Use Autologon']['Disabled'] = True
|
||||
menus['Options'].options['Use Autologon']['Selected'] = False
|
||||
reg_set_value('HKCU', AUTO_REPAIR_KEY, 'Use Autologon', 0, 'DWORD')
|
||||
else:
|
||||
# Deselect Autologon by default
|
||||
menus['Options'].options['Use Autologon']['Selected'] = False
|
||||
save_selection_settings(menus)
|
||||
|
||||
# Start or resume a repair session
|
||||
|
|
|
|||
Loading…
Reference in a new issue