mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Update menu.rs
This commit is contained in:
parent
5cb17ca9b5
commit
b14322faf5
1 changed files with 2 additions and 2 deletions
|
@ -372,12 +372,12 @@ pub unsafe fn draw(root_pane: &Pane) {
|
|||
|
||||
let menu_button_row = root_pane
|
||||
.find_pane_by_name_recursive(format!("TrModMenuButtonRow{row_idx}").as_str())
|
||||
.unwrap_or_else(|| panic!("Unable to find TrModMenuButtonRow{row_idx}").as_str());
|
||||
.unwrap();
|
||||
menu_button_row.set_visible(false);
|
||||
|
||||
let menu_button = menu_button_row
|
||||
.find_pane_by_name_recursive(format!("Button{col_idx}").as_str())
|
||||
.unwrap_or_else(|| panic!("Unable to find Button{col_idx}").as_str());
|
||||
.unwrap();
|
||||
menu_button.set_visible(false);
|
||||
|
||||
menu_button
|
||||
|
|
Loading…
Reference in a new issue