From 826cdb3d2caedb8ba2d79558ac2e4c4e5a9174bd Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 8 Oct 2025 01:06:00 +0200 Subject: oneshot unhook signal --- client/system/settings.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/system') diff --git a/client/system/settings.gd b/client/system/settings.gd index e7f718fb..70c6b505 100644 --- a/client/system/settings.gd +++ b/client/system/settings.gd @@ -134,7 +134,7 @@ static func hook_changed(key: String, slot, callable: Callable): var slot_id = 0 if slot is Node: slot_id = slot.get_instance_id() - slot.tree_exiting.connect(_unhook_changed.bind(key, slot_id)) + slot.tree_exiting.connect(_unhook_changed.bind(key, slot_id), CONNECT_ONE_SHOT) elif slot is String: slot_id = slot.hash() else: -- cgit v1.3