Only show preview when 1 image is selected (#183)
This commit is contained in:
parent
ba99a1fea0
commit
784b5be06a
|
@ -371,6 +371,7 @@ impl GuiData {
|
||||||
|
|
||||||
//// Dialog State - dialog with progress state, which allows to stop task
|
//// Dialog State - dialog with progress state, which allows to stop task
|
||||||
let dialog_progress: gtk::Dialog = builder.get_object("dialog_progress").unwrap();
|
let dialog_progress: gtk::Dialog = builder.get_object("dialog_progress").unwrap();
|
||||||
|
dialog_progress.set_title("Czkawka");
|
||||||
|
|
||||||
let progress_bar_current_stage: gtk::ProgressBar = builder.get_object("progress_bar_current_stage").unwrap();
|
let progress_bar_current_stage: gtk::ProgressBar = builder.get_object("progress_bar_current_stage").unwrap();
|
||||||
let progress_bar_all_stages: gtk::ProgressBar = builder.get_object("progress_bar_all_stages").unwrap();
|
let progress_bar_all_stages: gtk::ProgressBar = builder.get_object("progress_bar_all_stages").unwrap();
|
||||||
|
|
|
@ -228,7 +228,8 @@ pub fn initialize_gui(gui_data: &GuiData) {
|
||||||
|
|
||||||
let mut created_image = false;
|
let mut created_image = false;
|
||||||
|
|
||||||
if !selected_rows.is_empty() && check_button_settings_show_preview_similar_images.get_active() {
|
// Only show preview when selected is only one item, because there is no method to recognize current clicked item in multiselection
|
||||||
|
if selected_rows.len() == 1 && check_button_settings_show_preview_similar_images.get_active() {
|
||||||
let tree_path = selected_rows[0].clone();
|
let tree_path = selected_rows[0].clone();
|
||||||
if let Some(proj_dirs) = ProjectDirs::from("pl", "Qarmin", "Czkawka") {
|
if let Some(proj_dirs) = ProjectDirs::from("pl", "Qarmin", "Czkawka") {
|
||||||
// TODO labels on {} are in testing stage, so we just ignore for now this warning until found better idea how to fix this
|
// TODO labels on {} are in testing stage, so we just ignore for now this warning until found better idea how to fix this
|
||||||
|
|
Loading…
Reference in a new issue