Merge pull request #18745 from DmitryKrutskikh/minor-fix-project-manager

Disable 'run' button if any project not selected
This commit is contained in:
Rémi Verschelde 2018-05-09 19:54:52 +02:00 committed by GitHub
commit c294993d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -725,9 +725,11 @@ void ProjectManager::_update_project_buttons() {
}
}
erase_btn->set_disabled(selected_list.size() < 1);
open_btn->set_disabled(selected_list.size() < 1);
rename_btn->set_disabled(selected_list.size() < 1);
bool empty_selection = selected_list.empty();
erase_btn->set_disabled(empty_selection);
open_btn->set_disabled(empty_selection);
rename_btn->set_disabled(empty_selection);
run_btn->set_disabled(empty_selection);
}
void ProjectManager::_panel_input(const Ref<InputEvent> &p_ev, Node *p_hb) {