Skip to content

Commit dceac0a

Browse files
authored
Merge pull request #835 from Spartan322/4.3-fix/update-behavior
[4.3] Fix ignoring status_version for updating
2 parents 9bbd803 + 6c1a415 commit dceac0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

editor/engine_update_label.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ void EngineUpdateLabel::_http_request_completed(int p_result, int p_response_cod
141141
break;
142142
}
143143

144-
int current_version_index;
144+
int current_version_index = current_version_info.get("status_version", 0);
145+
current_version_index = current_version_index > 0 ? current_version_index : DEV_VERSION;
145146
VersionType current_version_type = _get_version_type(current_version_info.get("status", "unknown"), &current_version_index);
146147

147148
if (int(release_type) > int(current_version_type)) {
@@ -231,7 +232,7 @@ EngineUpdateLabel::VersionType EngineUpdateLabel::_get_version_type(const String
231232
}
232233
}
233234

234-
if (r_index) {
235+
if (r_index && *r_index == DEV_VERSION) {
235236
if (index_string.is_empty()) {
236237
*r_index = DEV_VERSION;
237238
} else {

0 commit comments

Comments
 (0)