You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Signals: Manually port most of remaining connect_compat uses
It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
This commit is contained in:
@@ -2098,7 +2098,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||
|
||||
timer = memnew(Timer);
|
||||
timer->set_wait_time(1.5);
|
||||
timer->connect_compat("timeout", ProjectSettings::get_singleton(), "save");
|
||||
timer->connect("timeout", callable_mp(ProjectSettings::get_singleton(), &ProjectSettings::save));
|
||||
timer->set_one_shot(true);
|
||||
add_child(timer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user