Changeset - r26348:6dbbeee7b39a
[Not reviewed]
master
0 1 0
Joel-Milligan - 2 years ago 2022-08-30 12:56:19
52927756+Joel-Milligan@users.noreply.github.com
Fix #9363: Rebuild client list on reinit event (#9929)
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/network_gui.cpp
Show inline comments
 
@@ -1711,12 +1711,17 @@ public:
 
		this->CreateNestedTree();
 
		this->vscroll = this->GetScrollbar(WID_CL_SCROLLBAR);
 
		this->OnInvalidateData();
 
		this->FinishInitNested(window_number);
 
	}
 

	
 
	void OnInit() override
 
	{
 
		RebuildList();
 
	}
 

	
 
	void OnInvalidateData(int data = 0, bool gui_scope = true) override
 
	{
 
		this->RebuildList();
 

	
 
		/* Currently server information is not sync'd to clients, so we cannot show it on clients. */
 
		this->GetWidget<NWidgetStacked>(WID_CL_SERVER_SELECTOR)->SetDisplayedPlane(_network_server ? 0 : SZSP_HORIZONTAL);
0 comments (0 inline, 0 general)