1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 15:39:49 +00:00

Fix variable name shadowing in TopMenuContainer

This commit is contained in:
Emmanouil Papadeas 2024-11-28 16:39:09 +02:00
parent ad83823f58
commit 50da6c0ce9

View file

@ -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