Skip to content

Commit

Permalink
Change the "remove missing" button to disabled rather than hidden
Browse files Browse the repository at this point in the history
Also set a minimum size
  • Loading branch information
aaronfranke committed Aug 31, 2020
1 parent 2cfc5b8 commit 0b6326c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0b6326c

Please sign in to comment.