Merge pull request #31978 from YeldhamDev/inspector_dock_small_improvements
Small improvements to the inspector dock
This commit is contained in:
commit
4a7889578c
2 changed files with 7 additions and 4 deletions
|
|
@ -74,7 +74,12 @@ void EditorPath::_about_to_show() {
|
|||
objects.clear();
|
||||
get_popup()->clear();
|
||||
get_popup()->set_size(Size2(get_size().width, 1));
|
||||
|
||||
_add_children_to_popup(obj);
|
||||
if (get_popup()->get_item_count() == 0) {
|
||||
get_popup()->add_item(TTR("No sub-resources found."));
|
||||
get_popup()->set_item_disabled(0, true);
|
||||
}
|
||||
}
|
||||
|
||||
void EditorPath::update_path() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue