1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00

Fixed bug where icons show on slider menu (#528)

* Fixed bug by hiding icon for buttons when rendering Slider Menu

* Fixed formatting

* Fixed build
This commit is contained in:
Matthew Edell 2023-05-09 10:40:42 -04:00 committed by GitHub
parent dbfa60bebc
commit b34fc6b4a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,6 +337,12 @@ unsafe fn render_slider_page(app: &App, root_pane: &mut Pane) {
min_value_text.set_visible(true);
max_value_text.set_visible(true);
// Hide the Icon pane for MinButton and MaxButton
[min_button, max_button].iter().for_each(|button| {
let icon = button.find_pane_by_name_recursive("Icon").unwrap();
icon.set_visible(false);
});
}
pub unsafe fn draw(root_pane: &mut Pane) {