From 8ab71490cf4ff1d7e0b37ac88e5b19040cace374 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:39:09 +0200 Subject: [PATCH] Fix variable name shadowing in TopMenuContainer --- src/UI/TopMenuContainer/TopMenuContainer.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/TopMenuContainer/TopMenuContainer.gd b/src/UI/TopMenuContainer/TopMenuContainer.gd index 1579ba342..622921701 100644 --- a/src/UI/TopMenuContainer/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer/TopMenuContainer.gd @@ -873,8 +873,8 @@ func _toggle_show_mouse_guides() -> void: func _toggle_zen_mode() -> void: for i in ui_elements.size(): var index := panels_submenu.get_item_index(i) - var name := ui_elements[i].name - if name == "Main Canvas" or name == "Tiles": + var panel_name := ui_elements[i].name + if panel_name == "Main Canvas" or panel_name == "Tiles": continue if !panels_submenu.is_item_checked(index): continue