Ask to open logs in WinPE menus

* Instead of automatically opening them
This commit is contained in:
Alan Mason 2017-12-03 09:50:30 -08:00
parent 5c5b13b33c
commit 975a43f1d5

View file

@ -157,7 +157,7 @@ def menu_backup():
# Verify backup(s) # Verify backup(s)
if disk['Valid Partitions']: if disk['Valid Partitions']:
print_info('\n\n Verifying backup images(s)\n') print_info('\n\nVerifying backup images(s)\n')
for par in disk['Partitions']: for par in disk['Partitions']:
if par['Number'] in disk['Bad Partitions']: if par['Number'] in disk['Bad Partitions']:
continue # Skip verification continue # Skip verification
@ -191,7 +191,7 @@ def menu_backup():
print_error('\t{}'.format(par['Error'])) print_error('\t{}'.format(par['Error']))
else: else:
print_success('\nNo errors were encountered during imaging.') print_success('\nNo errors were encountered during imaging.')
if 'LogFile' in global_vars: if 'LogFile' in global_vars and ask('\nReview log?'):
cmd = [ cmd = [
global_vars['Tools']['NotepadPlusPlus'], global_vars['Tools']['NotepadPlusPlus'],
global_vars['LogFile']] global_vars['LogFile']]
@ -369,7 +369,7 @@ def menu_setup():
# Print summary # Print summary
print_standard('\nDone.') print_standard('\nDone.')
if 'LogFile' in global_vars: if 'LogFile' in global_vars and ask('\nReview log?'):
cmd = [ cmd = [
global_vars['Tools']['NotepadPlusPlus'], global_vars['Tools']['NotepadPlusPlus'],
global_vars['LogFile']] global_vars['LogFile']]