Permalink
Browse files

Qt/NetPlayDialog: Restore window geometry

  • Loading branch information...
spycrab committed May 10, 2018
1 parent 0ee7bdd commit 0141ce9305458315ff8ae663f64b38d698a3d0f8
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/Core/DolphinQt2/NetPlay/NetPlayDialog.cpp
@@ -56,13 +56,15 @@ 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());
}
NetPlayDialog::~NetPlayDialog()
{
auto& settings = Settings::Instance().GetQSettings();
settings.setValue(QStringLiteral("netplaydialog/geometry"), saveGeometry());
settings.setValue(QStringLiteral("netplaydialog/splitter"), m_splitter->saveState());
}

0 comments on commit 0141ce9

Please sign in to comment.