From ea474c2af09630af25eb374051e6a0fa3acce72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Wed, 3 Feb 2021 20:23:19 +0100 Subject: [PATCH] Fix typo in window progress --- czkawka_gui/src/connect_progress_window.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/czkawka_gui/src/connect_progress_window.rs b/czkawka_gui/src/connect_progress_window.rs index 8f92154..47618d8 100644 --- a/czkawka_gui/src/connect_progress_window.rs +++ b/czkawka_gui/src/connect_progress_window.rs @@ -62,7 +62,12 @@ pub fn connect_progress_window( progress_bar_all_stages.set_fraction((2f64) / (item.max_stage + 1) as f64); progress_bar_current_stage.set_fraction(0f64); } - label_stage.set_text(format!("Analyzed full hash of {}/{} files", item.files_checked, item.files_to_check).as_str()); + + if item.checking_method == duplicate::CheckingMethod::Hash { + label_stage.set_text(format!("Analyzed full hash of {}/{} files", item.files_checked, item.files_to_check).as_str()); + } else { + label_stage.set_text(format!("Analyzed hash of {}/{} files", item.files_checked, item.files_to_check).as_str()); + } } _ => { panic!("Not available current_stage");