Clear widget cache for active macro to enable undo / redo

This commit is contained in:
WarmUpTill
2026-08-17 18:45:56 +02:00
parent 74e5ca1b57
commit 71e1e395df

View File

@@ -201,6 +201,8 @@ bool MacroSegmentList::PopulateWidgetsFromCache(const Macro *macro)
_contentLayout->addWidget(widget);
widget->show();
}
// Widgets are now owned by the layout again, so the cache entry is stale.
_widgetCache.erase(it);
adjustSize();
updateGeometry();