1
0
Fork 0
mirror of synced 2024-05-01 11:02:53 +12:00

Only show preview when 1 image is selected (#183)

This commit is contained in:
Rafał Mikrut 2021-01-07 22:09:49 +01:00 committed by GitHub
parent ba99a1fea0
commit 784b5be06a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -371,6 +371,7 @@ impl GuiData {
//// Dialog State - dialog with progress state, which allows to stop task
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_all_stages: gtk::ProgressBar = builder.get_object("progress_bar_all_stages").unwrap();

View file

@ -228,7 +228,8 @@ pub fn initialize_gui(gui_data: &GuiData) {
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();
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