Fixes Keyup Navigation in Project Manager

This PR fixes the issue of navigation via keyup in the project manager not selecting the first item.
This commit is contained in:
Emmanuel Barroga 2019-08-27 10:15:37 -07:00
parent b7c46ed929
commit 36e3996677

View file

@ -1832,7 +1832,7 @@ void ProjectManager::_unhandled_input(const Ref<InputEvent> &p_ev) {
break;
int index = _project_list->get_single_selected_index();
if (index - 1 > 0) {
if (index > 0) {
_project_list->select_project(index - 1);
_project_list->ensure_project_visible(index - 1);
_update_project_buttons();