1
0
Fork 0
mirror of synced 2024-05-04 20:43:35 +12:00

Hide at start move button

This commit is contained in:
Rafał Mikrut 2021-11-20 12:37:25 +01:00
parent 9d28fb8a59
commit c9ca230dfd
2 changed files with 3 additions and 1 deletions

View file

@ -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");
}
}

View file

@ -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();
@ -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