PR feedback updates

This commit was merged in pull request #7.
This commit is contained in:
2025-09-23 06:01:53 +08:00
committed by Jason Ross
parent 835c041fc6
commit 27099b8ea2
6 changed files with 5 additions and 51 deletions
-13
View File
@@ -173,19 +173,6 @@ class TransferManager:
# Handle errors on main thread
if transfer_id == self.current_transfer_id and 'show_error' in self.ui_callbacks:
self.parent.after(0, lambda: self.ui_callbacks["show_error"](f"Transfer error: {str(e)}"))
# Start transfer in background thread
self.current_transfer_id += 1
transfer_id = self.current_transfer_id
threading.Thread(
target=self._transfer_thread,
args=(direction, source_path, dest_path, transfer_id, is_file),
daemon=True
).start()
return True
def cancel_transfer(self) -> bool:
"""Cancel the current transfer operation.