Browse Source

Merge pull request #31718 from sparkart/fix_projectmanager_keyup

Fixes Keyup Navigation in Project Manager
Rémi Verschelde 6 years ago
parent
commit
c59da91aad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/project_manager.cpp

+ 1 - 1
editor/project_manager.cpp

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