From 50b1de7e3938588cb8bba9373e9c56fdbe352458 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Mon, 23 Mar 2020 03:38:21 -0400 Subject: [PATCH] Change the "remove missing" button to disabled rather than hidden Also set a minimum size (cherry picked from commit 0b6326c79aca94a417218160e311a08fb2891953) --- editor/project_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 0f402fe47fd..74db897b02a 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1856,7 +1856,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 &p_ev) { @@ -2525,6 +2525,7 @@ ProjectManager::ProjectManager() { _project_list->set_enable_h_scroll(false); VBoxContainer *tree_vb = memnew(VBoxContainer); + tree_vb->set_custom_minimum_size(Size2(120, 120)); tree_hb->add_child(tree_vb); Button *open = memnew(Button);