diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-01 10:46:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 10:46:13 +0200 |
commit | ac3046682a58611253344e70633c41552ff47089 (patch) | |
tree | e1b50fbcbcc0c2718cb5facbfd7e7cda2f5beab7 | |
parent | eac32f082a78a8303fa364d2737f16705b1a74ab (diff) | |
parent | 0b6326c79aca94a417218160e311a08fb2891953 (diff) |
Merge pull request #37240 from aaronfranke/pm-min-size
Change the "remove missing" button to disabled rather than hidden
-rw-r--r-- | editor/project_manager.cpp | 3 |
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); |