Skip to content

Commit

Permalink
Fix ignoring status_version for updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan322 committed Nov 3, 2024
1 parent 9bbd803 commit 6c1a415
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions editor/engine_update_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ void EngineUpdateLabel::_http_request_completed(int p_result, int p_response_cod
break;
}

int current_version_index;
int current_version_index = current_version_info.get("status_version", 0);
current_version_index = current_version_index > 0 ? current_version_index : DEV_VERSION;
VersionType current_version_type = _get_version_type(current_version_info.get("status", "unknown"), &current_version_index);

if (int(release_type) > int(current_version_type)) {
Expand Down Expand Up @@ -231,7 +232,7 @@ EngineUpdateLabel::VersionType EngineUpdateLabel::_get_version_type(const String
}
}

if (r_index) {
if (r_index && *r_index == DEV_VERSION) {
if (index_string.is_empty()) {
*r_index = DEV_VERSION;
} else {
Expand Down

0 comments on commit 6c1a415

Please sign in to comment.