Use specific versions to select UAC settings

This commit is contained in:
2Shirt 2021-10-14 17:40:07 -06:00
parent d664100c50
commit c5fca8f04f
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1243,7 +1243,7 @@ def reset_windows_updates():
def restore_uac_defaults():
"""Restore UAC default settings."""
settings = REG_UAC_DEFAULTS_WIN10
if OS_VERSION != 10:
if OS_VERSION in (7, 8, 8.1):
settings = REG_UAC_DEFAULTS_WIN7
reg_write_settings(settings)