Merge pull request #37240 from aaronfranke/pm-min-size

Change the "remove missing" button to disabled rather than hidden
This commit is contained in:
Rémi Verschelde 2020-09-01 10:46:13 +02:00 committed by GitHub
commit ac3046682a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1859,7 +1859,7 @@ void ProjectManager::_update_project_buttons() {
rename_btn->set_disabled(empty_selection || is_missing_project_selected);
run_btn->set_disabled(empty_selection || is_missing_project_selected);
erase_missing_btn->set_visible(_project_list->is_any_project_missing());
erase_missing_btn->set_disabled(!_project_list->is_any_project_missing());
}
void ProjectManager::_unhandled_input(const Ref<InputEvent> &p_ev) {
@ -2472,6 +2472,7 @@ ProjectManager::ProjectManager() {
{
// Project tab side bar
VBoxContainer *tree_vb = memnew(VBoxContainer);
tree_vb->set_custom_minimum_size(Size2(120, 120));
projects_hb->add_child(tree_vb);
Button *create = memnew(Button);