diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-03 12:45:51 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-03 12:45:51 -0400 |
commit | e7755ad0be98540c777d86c67605386ff11522a3 (patch) | |
tree | 8b8c6c3b138fea8ded708f64e0a24073b0a1f7ce /src/ui | |
parent | 596ced65ae6ae59f4e1ac2ed60246a4c5943a919 (diff) |
add symlink relative
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/widgets/tui_worker.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/widgets/tui_worker.rs b/src/ui/widgets/tui_worker.rs index 4ac034a..cb6460e 100644 --- a/src/ui/widgets/tui_worker.rs +++ b/src/ui/widgets/tui_worker.rs @@ -4,7 +4,6 @@ use tui::style::{Color, Modifier, Style}; use tui::widgets::Widget; use crate::context::WorkerContext; -use crate::io::FileOperation; use crate::util::format; pub struct TuiWorker<'a> { @@ -22,12 +21,7 @@ impl<'a> Widget for TuiWorker<'a> { match self.context.worker_ref() { Some(io_obs) => { if let Some(progress) = io_obs.progress.as_ref() { - let op_str = match progress.kind() { - FileOperation::Cut => "Moving", - FileOperation::Copy => "Copying", - FileOperation::Symlink => "Symlinking", - FileOperation::Delete => "Deleting", - }; + let op_str = progress.kind().actioning_str(); let processed_size = format::file_size_to_string(progress.bytes_processed()); let total_size = format::file_size_to_string(progress.total_bytes()); |