mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Allow configuring a callback to create tool windows on-demand
* This means we can start with an empty manager, load a layout, and just create the needed windows as we go according to what the layout needs.
This commit is contained in:
@@ -186,6 +186,7 @@ void ToolWindowManagerArea::restoreState(const QVariantMap &data) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (t == NULL) t = m_manager->createToolWindow(objectName);
|
||||
if (t) {
|
||||
t->setProperty("persistData", objectData["data"]);
|
||||
addToolWindow(t);
|
||||
|
||||
Reference in New Issue
Block a user