Qt/NetPlayDialog: Restore window geometry

This commit is contained in:
spycrab 2018-05-10 19:42:15 +02:00
parent 0ee7bddd4f
commit 0141ce9305
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ NetPlayDialog::NetPlayDialog(QWidget* parent)
auto& settings = Settings::Instance().GetQSettings();
restoreGeometry(settings.value(QStringLiteral("netplaydialog/geometry")).toByteArray());
m_splitter->restoreState(settings.value(QStringLiteral("netplaydialog/splitter")).toByteArray());
}
@ -63,6 +64,7 @@ NetPlayDialog::~NetPlayDialog()
{
auto& settings = Settings::Instance().GetQSettings();
settings.setValue(QStringLiteral("netplaydialog/geometry"), saveGeometry());
settings.setValue(QStringLiteral("netplaydialog/splitter"), m_splitter->saveState());
}