Restoring NetPlay Session Browser dialog's settings before connecting widgets, to prevent multiple refresh requests on change.
This commit is contained in:
parent
07a0d44b36
commit
eee1589aa3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue