mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Save and load persistant config file
This commit is contained in:
@@ -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