diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-10-24 01:04:42 -0400 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-10-24 02:45:33 -0400 |
commit | 47708a9e78c3694a5aaef02d03f3b0badb4f69ce (patch) | |
tree | 01f3c42b7ac679c827c270ebac6b4a94f04a48de /editor/engine_update_label.cpp | |
parent | ce103fb883c264d3b722b64e5dadd21893b85126 (diff) | |
download | redot-engine-47708a9e78c3694a5aaef02d03f3b0badb4f69ce.tar.gz |
Fix `EngineUpdateLabel` referring to godotengine.org
Fix `EngineUpdateLabel` status version trimming
(cherry picked from commit abc52f3836b57eaa46d7d2862232a2e985fd38f4)
Diffstat (limited to 'editor/engine_update_label.cpp')
-rw-r--r-- | editor/engine_update_label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/engine_update_label.cpp b/editor/engine_update_label.cpp index 92327e41bd..7e16c6b86e 100644 --- a/editor/engine_update_label.cpp +++ b/editor/engine_update_label.cpp @@ -49,7 +49,7 @@ bool EngineUpdateLabel::_can_check_updates() const { void EngineUpdateLabel::_check_update() { checked_update = true; _set_status(UpdateStatus::BUSY); - http->request("https://godotengine.org/versions.json"); + http->request("https://redotengine.org/versions.json"); } void EngineUpdateLabel::_http_request_completed(int p_result, int p_response_code, const PackedStringArray &p_headers, const PackedByteArray &p_body) { @@ -235,7 +235,7 @@ EngineUpdateLabel::VersionType EngineUpdateLabel::_get_version_type(const String if (index_string.is_empty()) { *r_index = DEV_VERSION; } else { - *r_index = index_string.to_int(); + *r_index = index_string.trim_prefix(".").to_int(); } } return type; |