summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-03-23 03:38:21 -0400
committerAaron Franke <arnfranke@yahoo.com>2020-08-31 11:40:06 -0400
commit0b6326c79aca94a417218160e311a08fb2891953 (patch)
tree31515ab9efb7d7bc54df71be95a8473b41d91638
parent2cfc5b8680bf7c1f75b02f83f7ecc26d1e49021f (diff)
Change the "remove missing" button to disabled rather than hidden
Also set a minimum size
-rw-r--r--editor/project_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index c7f03bd22b..a316756808 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -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);