aboutsummaryrefslogtreecommitdiff
path: root/client/menu/settings/settings_root.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-07 03:31:25 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-07 03:31:25 +0200
commit239619be774855b372eea82213b4d8da2d906f52 (patch)
treef2e3748a4a4e818361365796db21bdf9e70fee97 /client/menu/settings/settings_root.gd
parent03bdf875aec224ee8f74c259ed776da52bad54ff (diff)
downloadhurrycurry-239619be774855b372eea82213b4d8da2d906f52.tar
hurrycurry-239619be774855b372eea82213b4d8da2d906f52.tar.bz2
hurrycurry-239619be774855b372eea82213b4d8da2d906f52.tar.zst
hook changed for rows
Diffstat (limited to 'client/menu/settings/settings_root.gd')
-rw-r--r--client/menu/settings/settings_root.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/menu/settings/settings_root.gd b/client/menu/settings/settings_root.gd
index 5acf7f11..d7dad1f7 100644
--- a/client/menu/settings/settings_root.gd
+++ b/client/menu/settings/settings_root.gd
@@ -23,13 +23,13 @@ func _init(new_children: Array):
for c in children:
c.set_parent(null)
-func _update_row():
- if row == null: row = TabContainer.new()
+func create_row():
+ var row = TabContainer.new()
row.size_flags_vertical = Control.SIZE_EXPAND_FILL
for r in children:
r._update_row()
- if r.row.get_parent() != row:
- row.add_child(r.row)
+ row.add_child(r.row)
+ return row
func check():
for c in children: