1
0
Fork 0
mirror of synced 2024-05-02 11:33:00 +12:00
czkawka/czkawka_gui/src/connect_duplicate_buttons.rs
Rafał Mikrut 51271dcdf0
Remove HashMB mode (#476)
* Remove HashMB mode

* Add some explanation and remove this from GUI

* Not needing to handle everything
2021-12-01 12:37:17 +01:00

22 lines
1 KiB
Rust

use gtk::prelude::*;
use crate::gui_data::GuiData;
pub fn connect_duplicate_buttons(gui_data: &GuiData) {
let radio_button_duplicates_hash = gui_data.main_notebook.radio_button_duplicates_hash.clone();
let radio_button_hash_type_blake3 = gui_data.main_notebook.radio_button_hash_type_blake3.clone();
let radio_button_hash_type_xxh3 = gui_data.main_notebook.radio_button_hash_type_xxh3.clone();
let radio_button_hash_type_crc32 = gui_data.main_notebook.radio_button_hash_type_crc32.clone();
radio_button_duplicates_hash.connect_toggled(move |radio_button_duplicates_hash| {
if radio_button_duplicates_hash.is_active() {
radio_button_hash_type_blake3.set_sensitive(true);
radio_button_hash_type_xxh3.set_sensitive(true);
radio_button_hash_type_crc32.set_sensitive(true);
} else {
radio_button_hash_type_blake3.set_sensitive(false);
radio_button_hash_type_xxh3.set_sensitive(false);
radio_button_hash_type_crc32.set_sensitive(false);
}
});
}