NEO-74: Apply gdformat to main and craft refresh test.
parent
1533687aa8
commit
501834279e
|
|
@ -552,7 +552,9 @@ func _setup_craft_ui() -> void:
|
||||||
if _recipe_defs_client.has_signal("recipes_ready"):
|
if _recipe_defs_client.has_signal("recipes_ready"):
|
||||||
_recipe_defs_client.connect("recipes_ready", Callable(self, "_on_recipes_ready"))
|
_recipe_defs_client.connect("recipes_ready", Callable(self, "_on_recipes_ready"))
|
||||||
if _recipe_defs_client.has_signal("recipes_sync_failed"):
|
if _recipe_defs_client.has_signal("recipes_sync_failed"):
|
||||||
_recipe_defs_client.connect("recipes_sync_failed", Callable(self, "_on_recipes_sync_failed"))
|
_recipe_defs_client.connect(
|
||||||
|
"recipes_sync_failed", Callable(self, "_on_recipes_sync_failed")
|
||||||
|
)
|
||||||
if _craft_recipe_panel.has_signal("craft_requested"):
|
if _craft_recipe_panel.has_signal("craft_requested"):
|
||||||
_craft_recipe_panel.connect("craft_requested", Callable(self, "_on_craft_requested"))
|
_craft_recipe_panel.connect("craft_requested", Callable(self, "_on_craft_requested"))
|
||||||
if _craft_client.has_signal("craft_result_received"):
|
if _craft_client.has_signal("craft_result_received"):
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,7 @@ class MockCraftTransport:
|
||||||
_request_data: String = ""
|
_request_data: String = ""
|
||||||
) -> Error:
|
) -> Error:
|
||||||
request_completed.emit(
|
request_completed.emit(
|
||||||
HTTPRequest.RESULT_SUCCESS,
|
HTTPRequest.RESULT_SUCCESS, 200, PackedStringArray(), body_json.to_utf8_buffer()
|
||||||
200,
|
|
||||||
PackedStringArray(),
|
|
||||||
body_json.to_utf8_buffer()
|
|
||||||
)
|
)
|
||||||
return OK
|
return OK
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue