1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

Small improvements to the inspector dock

This commit is contained in:
Michael Alexsander Silva Dias
2019-09-04 19:38:23 -03:00
parent e205cbbd06
commit e5f96a344a
2 changed files with 7 additions and 4 deletions

View File

@@ -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() {