From 043646a4a8b464c52dbcc3e8ad718ac05d221db5 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Mon, 26 Jan 2026 15:38:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5.=20E=200:00:05:248=20=20=20settings-to?= =?UTF-8?q?ggle.gd:11=20@=20=5Fexit=5Ftree():=20Attempt=20to=20disconnect?= =?UTF-8?q?=20a=20nonexistent=20connection=20from=20''.=20Signal:=20'settings=5Fchanged',=20callable:=20'LineE?= =?UTF-8?q?dit(settings-toggle.gd)::apply=5Fcolors'.=20=20=20<=D0=9E=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D0=B0=20C++>=20=20Condition=20"!s->slot=5Fma?= =?UTF-8?q?p.has(*p=5Fcallable.get=5Fbase=5Fcomparator())"=20is=20true.=20?= =?UTF-8?q?Returning:=20false=20=20=20<=D0=98=D1=81=D1=85=D0=BE=D0=B4?= =?UTF-8?q?=D0=BD=D1=8B=D0=B9=20=D0=BA=D0=BE=D0=B4=20C++>core/object/objec?= =?UTF-8?q?t.cpp:1529=20@=20=5Fdisconnect()=20=20=20<=D0=A2=D1=80=D0=B0?= =?UTF-8?q?=D1=81=D1=81=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=BA=D0=B0>settings-toggle.gd:11=20@=20=5Fexit=5Ftree()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- table/settings-toggle.gd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/table/settings-toggle.gd b/table/settings-toggle.gd index 53db3e5c..ed32cbdb 100644 --- a/table/settings-toggle.gd +++ b/table/settings-toggle.gd @@ -3,14 +3,10 @@ extends LineEdit var checkbutton_material: Material -func _enter_tree() -> void: +func _ready() -> void: ProjectSettings.connect('settings_changed', on_setting_changed) -func _exit_tree() -> void: - ProjectSettings.disconnect('settings_changed', apply_colors) - - func on_setting_changed(): var cb = $CheckButton checkbutton_material = cb.material