mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-18 18:19:12 +00:00
Save and load persistant config file
This commit is contained in:
1 parent
3ec1be62ff
commit
03eb2ea696
9 files changed
+431
-8
No files matched your search
@@ -227,9 +227,6 @@ QVariantMap MainWindow::saveState()
|
||||
{
|
||||
QVariantMap state = ui->toolWindowManager->saveState();
|
||||
|
||||
// marker that this is indeed a valid state to load from
|
||||
state["renderdocLayoutData"] = 1;
|
||||
|
||||
state["mainWindowGeometry"] = saveGeometry().toBase64();
|
||||
|
||||
return state;
|
||||
@@ -250,6 +247,9 @@ bool MainWindow::SaveLayout(int layout)
|
||||
|
||||
QVariantMap state = saveState();
|
||||
|
||||
// marker that this is indeed a valid state to load from
|
||||
state["renderdocLayoutData"] = 1;
|
||||
|
||||
QFile f(path);
|
||||
if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user