Renamed Drive to Disk to align options in menu
This commit is contained in:
parent
3fdd8c629c
commit
18fc97293e
1 changed files with 6 additions and 6 deletions
|
|
@ -225,8 +225,8 @@ def menu_diags(state, args):
|
||||||
# NOTE: Changing the order of main_options will break everything
|
# NOTE: Changing the order of main_options will break everything
|
||||||
main_options = [
|
main_options = [
|
||||||
{'Base Name': 'Full Diagnostic', 'Enabled': True},
|
{'Base Name': 'Full Diagnostic', 'Enabled': True},
|
||||||
{'Base Name': 'Drive Diagnostic', 'Enabled': False},
|
{'Base Name': 'Disk Diagnostic', 'Enabled': False},
|
||||||
{'Base Name': 'Drive Diagnostic (Quick)', 'Enabled': False},
|
{'Base Name': 'Disk Diagnostic (Quick)', 'Enabled': False},
|
||||||
{'Base Name': 'Prime95 & Temps', 'Enabled': True, 'CRLF': True},
|
{'Base Name': 'Prime95 & Temps', 'Enabled': True, 'CRLF': True},
|
||||||
{'Base Name': 'NVMe / SMART', 'Enabled': True},
|
{'Base Name': 'NVMe / SMART', 'Enabled': True},
|
||||||
{'Base Name': 'badblocks', 'Enabled': True},
|
{'Base Name': 'badblocks', 'Enabled': True},
|
||||||
|
|
@ -249,7 +249,7 @@ def menu_diags(state, args):
|
||||||
while True:
|
while True:
|
||||||
# Set quick mode as necessary
|
# Set quick mode as necessary
|
||||||
if main_options[2]['Enabled'] and main_options[4]['Enabled']:
|
if main_options[2]['Enabled'] and main_options[4]['Enabled']:
|
||||||
# Check if only Drive Diags (Quick) and NVMe/SMART are enabled
|
# Check if only Disk Diags (Quick) and NVMe/SMART are enabled
|
||||||
# If so, verify no other tests are enabled and set quick_mode
|
# If so, verify no other tests are enabled and set quick_mode
|
||||||
state.quick_mode = True
|
state.quick_mode = True
|
||||||
for opt in main_options[3:4] + main_options[5:]:
|
for opt in main_options[3:4] + main_options[5:]:
|
||||||
|
|
@ -273,7 +273,7 @@ def menu_diags(state, args):
|
||||||
# Full
|
# Full
|
||||||
main_options[0]['Enabled'] = True
|
main_options[0]['Enabled'] = True
|
||||||
elif num_tests_selected == 3 and not main_options[3]['Enabled']:
|
elif num_tests_selected == 3 and not main_options[3]['Enabled']:
|
||||||
# Drive
|
# Disk
|
||||||
main_options[1]['Enabled'] = True
|
main_options[1]['Enabled'] = True
|
||||||
|
|
||||||
# Update checkboxes
|
# Update checkboxes
|
||||||
|
|
@ -309,7 +309,7 @@ def menu_diags(state, args):
|
||||||
for opt in main_options[3:]:
|
for opt in main_options[3:]:
|
||||||
opt['Enabled'] = False
|
opt['Enabled'] = False
|
||||||
elif index == 1:
|
elif index == 1:
|
||||||
# Drive
|
# Disk
|
||||||
if main_options[index]['Enabled']:
|
if main_options[index]['Enabled']:
|
||||||
main_options[0]['Enabled'] = False
|
main_options[0]['Enabled'] = False
|
||||||
for opt in main_options[2:4]:
|
for opt in main_options[2:4]:
|
||||||
|
|
@ -320,7 +320,7 @@ def menu_diags(state, args):
|
||||||
for opt in main_options[4:]:
|
for opt in main_options[4:]:
|
||||||
opt['Enabled'] = False
|
opt['Enabled'] = False
|
||||||
elif index == 2:
|
elif index == 2:
|
||||||
# Drive (Quick)
|
# Disk (Quick)
|
||||||
if main_options[index]['Enabled']:
|
if main_options[index]['Enabled']:
|
||||||
for opt in main_options[:2] + main_options[3:]:
|
for opt in main_options[:2] + main_options[3:]:
|
||||||
opt['Enabled'] = False
|
opt['Enabled'] = False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue