mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 11:18:22 -05:00
Do not show empty PropertyOwners in PropertyList
This commit is contained in:
@@ -77,6 +77,9 @@ void GuiPropertyComponent::render() {
|
||||
const std::vector<properties::PropertyOwner*>& owners = _function();
|
||||
|
||||
for (properties::PropertyOwner* pOwner : owners) {
|
||||
if (pOwner->propertiesRecursive().empty())
|
||||
continue;
|
||||
|
||||
auto header = [&]() -> bool {
|
||||
if (owners.size() > 1) {
|
||||
// Create a header in case we have multiple owners
|
||||
|
||||
Reference in New Issue
Block a user