MainWindow: Don't save UI geometry in batch mode. Batch mode was erasing the UI geometry for the sessions where batch mode is off. Render widget is still saved.
This commit is contained in:
parent
fa00728d3e
commit
28c28623a8
|
@ -346,8 +346,11 @@ MainWindow::~MainWindow()
|
|||
|
||||
QSettings& settings = Settings::GetQSettings();
|
||||
|
||||
settings.setValue(QStringLiteral("mainwindow/state"), saveState());
|
||||
settings.setValue(QStringLiteral("mainwindow/geometry"), saveGeometry());
|
||||
if (!Settings::Instance().IsBatchModeEnabled())
|
||||
{
|
||||
settings.setValue(QStringLiteral("mainwindow/state"), saveState());
|
||||
settings.setValue(QStringLiteral("mainwindow/geometry"), saveGeometry());
|
||||
}
|
||||
|
||||
settings.setValue(QStringLiteral("renderwidget/geometry"), m_render_widget_geometry);
|
||||
|
||||
|
|
Loading…
Reference in New Issue