Skip to content

Commit

Permalink
GH-48 Fix rendering of "Update Available" on dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jan 4, 2024
1 parent f1572bf commit 85aaacf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/editor/main_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,16 @@ void OrchestratorMainView::_navigate_to_current_path()
int OrchestratorMainView::_parse_version(const String& p_version)
{
PackedStringArray bits = p_version.split(".");
return bits[0].to_int() * 1000000 + bits[1].to_int() * 1000 + bits[2].to_int();

int version = 0;
if (bits[0].is_valid_int())
version += bits[0].to_int() * 1000000;
if (bits[1].is_valid_int())
version += bits[1].to_int() * 1000;
if (bits[2].is_valid_int())
version += bits[2].to_int();

return version;
}

void OrchestratorMainView::_show_script_editor_view(const String& p_file_name)
Expand Down

0 comments on commit 85aaacf

Please sign in to comment.