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);
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
|
|
||||||
CreateWidgets();
|
CreateWidgets();
|
||||||
|
RestoreSettings();
|
||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
|
|
||||||
resize(750, 500);
|
resize(750, 500);
|
||||||
|
@ -45,8 +46,6 @@ NetPlayBrowser::NetPlayBrowser(QWidget* parent) : QDialog(parent)
|
||||||
m_refresh_run.Set(true);
|
m_refresh_run.Set(true);
|
||||||
m_refresh_thread = std::thread([this] { RefreshLoop(); });
|
m_refresh_thread = std::thread([this] { RefreshLoop(); });
|
||||||
|
|
||||||
RestoreSettings();
|
|
||||||
|
|
||||||
UpdateList();
|
UpdateList();
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue