Skip to content

Commit

Permalink
Hide at start move button
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Nov 21, 2021
1 parent 9d28fb8 commit c9ca230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion czkawka_gui/src/connect_button_move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn move_with_tree(tree_view: gtk::TreeView, column_file_name: i32, column_path:
if model.value(&iter, column_color).get::<String>().unwrap() == MAIN_ROW_COLOR {
selection_rows.push(model.path(&iter).unwrap());
} else {
println!("ERROR: This should not happen model.value(&iter, column_color).get::<String>().unwrap() != MAIN_ROW_COLOR");
panic!("Header row shouldn't have selected, selection button");
}
}

Expand Down
2 changes: 2 additions & 0 deletions czkawka_gui/src/initialize_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub fn initialize_gui(gui_data: &mut GuiData) {
let buttons_select = gui_data.bottom_buttons.buttons_select.clone();
let buttons_symlink = gui_data.bottom_buttons.buttons_symlink.clone();
let buttons_hardlink = gui_data.bottom_buttons.buttons_hardlink.clone();
let buttons_move = gui_data.bottom_buttons.buttons_move.clone();

// Disable and show buttons - only search button should be visible
buttons_search.show();
Expand All @@ -30,6 +31,7 @@ pub fn initialize_gui(gui_data: &mut GuiData) {
buttons_select.hide();
buttons_symlink.hide();
buttons_hardlink.hide();
buttons_move.hide();
}

//// Initialize main scrolled view with notebook
Expand Down

0 comments on commit c9ca230

Please sign in to comment.