summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-03-10 12:51:49 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-03-10 12:51:49 -0400
commitc33800f1e565c242307e0e5f7afaf13e5b75a781 (patch)
tree643d545ae15b1f1c97db4b5557c6d72a70a343e3
parentf7f575f0b8ae14703f14c096d0b3798a6bb77684 (diff)
copy does not clear clipboard
-rw-r--r--src/commands/file_operations.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/file_operations.rs b/src/commands/file_operations.rs
index 69b5d50..dab6b24 100644
--- a/src/commands/file_operations.rs
+++ b/src/commands/file_operations.rs
@@ -276,7 +276,7 @@ impl PasteFiles {
let (tx, rx) = mpsc::channel();
let handle = thread::spawn(move || {
- let mut paths = selected_files.lock().unwrap();
+ let paths = selected_files.lock().unwrap();
let handle = |process_info: fs_extra::TransitProcess| {
let progress_info = ProgressInfo {
@@ -287,7 +287,6 @@ impl PasteFiles {
fs_extra::dir::TransitProcessResult::ContinueOrAbort
};
fs_extra::copy_items_with_progress(&paths, &destination, &options, handle);
- paths.clear();
0
});
let thread = FileOperationThread {