Adjusted HW Diag main menu

This commit is contained in:
2Shirt 2020-01-13 18:40:48 -07:00
parent 5c02d74dca
commit 65284860fb
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -74,7 +74,7 @@ MENU_SETS = {
}
MENU_TOGGLES = (
'osTicket Integration',
'osTicket Note (optional)',
'osTicket Tech Note',
'Skip USB Benchmarks',
)
NUM_DISK_TESTS = len([s for s in MENU_OPTIONS if s.startswith('Disk')])
@ -431,7 +431,7 @@ def build_menu(cli_mode=False, quick_mode=False):
menu.actions['Start']['Separator'] = True
# osTicket
menu.toggles['osTicket Note (optional)']['Selected'] = False
menu.toggles['osTicket Tech Note']['Selected'] = False
# Update default selections for quick mode if necessary
if quick_mode:
@ -1418,7 +1418,7 @@ def run_diags(state, menu, quick_mode=False):
# Add note
if (state.ost.ticket_id
and menu.toggles['osTicket Note (optional)']['Selected']):
and menu.toggles['osTicket Tech Note']['Selected']):
state.ost.add_note()
# Just return if no tests were selected