diff --git a/src/properties/property.cpp b/src/properties/property.cpp index 9ca43b2168..fb80b23377 100644 --- a/src/properties/property.cpp +++ b/src/properties/property.cpp @@ -24,6 +24,8 @@ #include +#include +#include #include #include #include @@ -101,6 +103,15 @@ std::string Property::groupIdentifier() const { void Property::setVisibility(Visibility visibility) { _metaData.visibility = visibility; notifyMetaDataChangeListeners(); + + // We only subscribe to meta data changes for visible properties, so if the + // visibility changes during runtime, we need to notify the property owner + // about the change for it to affect properties that are currently hidden + if (_owner) { + global::eventEngine->publishEvent( + _owner->uri() + ); + } } Property::Visibility Property::visibility() const {