Restoring NetPlay Session Browser dialog's settings before connecting widgets, to prevent multiple refresh requests on change.

This commit is contained in:
Christian Aguilera 2020-08-15 22:29:07 +01:00
parent 07a0d44b36
commit eee1589aa3

View File

@ -35,6 +35,7 @@ NetPlayBrowser::NetPlayBrowser(QWidget* parent) : QDialog(parent)
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateWidgets();
RestoreSettings();
ConnectWidgets();
resize(750, 500);
@ -45,8 +46,6 @@ NetPlayBrowser::NetPlayBrowser(QWidget* parent) : QDialog(parent)
m_refresh_run.Set(true);
m_refresh_thread = std::thread([this] { RefreshLoop(); });
RestoreSettings();
UpdateList();
Refresh();
}