From 1286e4157bc3bd73f5b5660fa70dcedf1478b1db Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 24 Oct 2016 12:27:49 +0100 Subject: [PATCH] Save / restore launcher window geometry. --- src/GUI/QtLauncher.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 6aca306b5..db9f81a88 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -730,6 +730,9 @@ void QtLauncher::setInAppMode() void QtLauncher::restoreSettings() { QSettings settings; + + restoreGeometry(settings.value("window-geometry").toByteArray()); + m_ui->rembrandtCheckbox->setChecked(settings.value("enable-rembrandt", false).toBool()); m_ui->terrasyncCheck->setChecked(settings.value("enable-terrasync", true).toBool()); m_ui->fullScreenCheckbox->setChecked(settings.value("start-fullscreen", false).toBool()); @@ -820,6 +823,8 @@ void QtLauncher::saveSettings() settings.setValue("mp-callsign", m_ui->mpCallsign->text()); settings.setValue("mp-server", m_ui->mpServerCombo->currentData()); settings.setValue("mp-enabled", m_ui->mpBox->isChecked()); + + settings.setValue("window-geometry", saveGeometry()); } void QtLauncher::setEnableDisableOptionFromCheckbox(QCheckBox* cbox, QString name) const