mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-07 21:01:27 +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:
1 parent
f8b7f0ca87
commit
e64c666883
3 files changed
+27
No files matched your search
@@ -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