mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 21:35:28 +00:00
Qt/NetPlayDialog: Restore window geometry
This commit is contained in:
parent
0ee7bddd4f
commit
0141ce9305
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user