You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Remove connect *_compat methods
This commit is contained in:
@@ -865,10 +865,10 @@ void ProjectExportDialog::_validate_export_path(const String &p_path) {
|
||||
|
||||
if (invalid_path) {
|
||||
export_project->get_ok()->set_disabled(true);
|
||||
export_project->get_line_edit()->disconnect_compat("text_entered", export_project, "_file_entered");
|
||||
export_project->get_line_edit()->disconnect("text_entered", Callable(export_project, "_file_entered"));
|
||||
} else {
|
||||
export_project->get_ok()->set_disabled(false);
|
||||
export_project->get_line_edit()->connect_compat("text_entered", export_project, "_file_entered");
|
||||
export_project->get_line_edit()->connect("text_entered", Callable(export_project, "_file_entered"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -900,9 +900,9 @@ void ProjectExportDialog::_export_project() {
|
||||
// with _validate_export_path.
|
||||
// FIXME: This is a hack, we should instead change EditorFileDialog to allow
|
||||
// disabling validation by the "text_entered" signal.
|
||||
if (!export_project->get_line_edit()->is_connected_compat("text_entered", export_project, "_file_entered")) {
|
||||
if (!export_project->get_line_edit()->is_connected("text_entered", Callable(export_project, "_file_entered"))) {
|
||||
export_project->get_ok()->set_disabled(false);
|
||||
export_project->get_line_edit()->connect_compat("text_entered", export_project, "_file_entered");
|
||||
export_project->get_line_edit()->connect("text_entered", Callable(export_project, "_file_entered"));
|
||||
}
|
||||
|
||||
export_project->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
|
||||
|
||||
Reference in New Issue
Block a user