Added pause after "No actions performed" message

This commit is contained in:
2Shirt 2020-01-04 16:54:28 -07:00
parent 4acdab8c0f
commit 470524dfff
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1599,6 +1599,7 @@ def main():
# Start recovery
if 'Start' in selection:
std.clear_screen()
run_recovery(state, main_menu, settings_menu, dry_run=args['--dry-run'])
# Quit
@ -1827,16 +1828,17 @@ def run_recovery(state, main_menu, settings_menu, dry_run=True):
LOG.warning('Recovery halted')
break
# Show warning if nothing was done
if not attempted_recovery:
std.print_warning('No actions performed')
std.print_standard(' ')
# Stop SMART/Journal
for pane in ('SMART', 'Journal'):
if pane in state.panes:
tmux.kill_pane(state.panes.pop(pane))
# Show warning if nothing was done
if not attempted_recovery:
std.print_warning('No actions performed')
std.print_standard(' ')
std.pause('Press Enter to return to main menu...')
# Done
state.save_debug_reports()
atexit.unregister(state.save_debug_reports)