Handle all failed using rsync while waiting for path confirmation

This commit is contained in:
Kovid Goyal 2021-11-17 11:28:19 +05:30
parent dc2bac0068
commit 18ed56b639
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -518,8 +518,12 @@ def on_text(self, text: str, in_bracketed_paste: bool = False) -> None:
if self.check_paths_printed and not self.transmit_started:
if text.lower() == 'y':
self.start_transfer()
if self.manager.all_acknowledged:
self.refresh_progress()
self.transfer_finished()
return
if text.lower() == 'n':
del self.failed_files[:]
self.abort_transfer()
self.print('Sending cancel request to terminal')
return
@ -530,6 +534,7 @@ def on_key(self, key_event: KeyEventType) -> None:
return
if key_event.matches('esc'):
if self.check_paths_printed and not self.transmit_started:
del self.failed_files[:]
self.abort_transfer()
self.print('Sending cancel request to terminal')
else: