Skip to content

Commit c9ca230

Browse files
committed
Hide at start move button
1 parent 9d28fb8 commit c9ca230

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

czkawka_gui/src/connect_button_move.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn move_with_tree(tree_view: gtk::TreeView, column_file_name: i32, column_path:
176176
if model.value(&iter, column_color).get::<String>().unwrap() == MAIN_ROW_COLOR {
177177
selection_rows.push(model.path(&iter).unwrap());
178178
} else {
179-
println!("ERROR: This should not happen model.value(&iter, column_color).get::<String>().unwrap() != MAIN_ROW_COLOR");
179+
panic!("Header row shouldn't have selected, selection button");
180180
}
181181
}
182182

czkawka_gui/src/initialize_gui.rs

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub fn initialize_gui(gui_data: &mut GuiData) {
2222
let buttons_select = gui_data.bottom_buttons.buttons_select.clone();
2323
let buttons_symlink = gui_data.bottom_buttons.buttons_symlink.clone();
2424
let buttons_hardlink = gui_data.bottom_buttons.buttons_hardlink.clone();
25+
let buttons_move = gui_data.bottom_buttons.buttons_move.clone();
2526

2627
// Disable and show buttons - only search button should be visible
2728
buttons_search.show();
@@ -30,6 +31,7 @@ pub fn initialize_gui(gui_data: &mut GuiData) {
3031
buttons_select.hide();
3132
buttons_symlink.hide();
3233
buttons_hardlink.hide();
34+
buttons_move.hide();
3335
}
3436

3537
//// Initialize main scrolled view with notebook

0 commit comments

Comments
 (0)