Gui: Fix too enthusiastic auto-collapse

This commit is contained in:
Pieter Hijma
2025-10-09 16:31:45 +02:00
committed by Chris Hennes
parent 8f3d9d9cdf
commit 90f9996fdb
3 changed files with 22 additions and 7 deletions

View File

@@ -239,9 +239,12 @@ void PropertyView::slotAppendDynamicProperty(const App::Property& prop)
return;
App::PropertyContainer* parent = prop.getContainer();
if (propertyEditorData->propOwners.contains(parent)
|| propertyEditorView->propOwners.contains(parent))
{
if (propertyEditorData->propOwners.contains(parent)) {
propertyEditorData->blockCollapseAll();
timer->start(ViewParams::instance()->getPropertyViewTimer());
}
if ( propertyEditorView->propOwners.contains(parent)) {
propertyEditorView->blockCollapseAll();
timer->start(ViewParams::instance()->getPropertyViewTimer());
}
}