Gui Fix
This commit is contained in:
parent
755e5e6a74
commit
9c6f2fa2ad
|
@ -272,8 +272,10 @@ impl SameMusic {
|
|||
|
||||
pub fn set_check_type(&mut self, check_type: CheckingMethod) {
|
||||
assert!([CheckingMethod::AudioTags, CheckingMethod::AudioContent].contains(&check_type));
|
||||
self.check_type = check_type
|
||||
self.check_type = check_type;
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn get_check_type(&self) -> CheckingMethod {
|
||||
self.check_type
|
||||
}
|
||||
|
|
|
@ -65,12 +65,12 @@ pub fn connect_same_music_change_mode(gui_data: &GuiData) {
|
|||
fn disable_enable_buttons(buttons: &[CheckButton; 7], scales: &[Widget; 4], current_mode: CheckingMethod) {
|
||||
match current_mode {
|
||||
CheckingMethod::AudioTags => {
|
||||
buttons.iter().for_each(|e| e.show());
|
||||
scales.iter().for_each(|e| e.hide());
|
||||
buttons.iter().for_each(WidgetExt::show);
|
||||
scales.iter().for_each(WidgetExt::hide);
|
||||
}
|
||||
CheckingMethod::AudioContent => {
|
||||
buttons.iter().for_each(|e| e.hide());
|
||||
scales.iter().for_each(|e| e.show());
|
||||
buttons.iter().for_each(WidgetExt::hide);
|
||||
scales.iter().for_each(WidgetExt::show);
|
||||
}
|
||||
_ => panic!(),
|
||||
}
|
||||
|
|
|
@ -775,7 +775,7 @@ pub fn scale_set_min_max_values(scale: &Scale, minimum: f64, maximum: f64, curre
|
|||
scale.set_fill_level(maximum);
|
||||
scale.set_value(current_value);
|
||||
if let Some(step) = step {
|
||||
scale.adjustment().set_step_increment(step)
|
||||
scale.adjustment().set_step_increment(step);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue