@@ -698,13 +698,12 @@ NetworkGameList *NetworkAddServer(const
/* Ensure the item already exists in the list */
NetworkGameList *item = NetworkGameListAddItem(connection_string);
if (item->info.server_name.empty()) {
ClearGRFConfigList(&item->info.grfconfig);
item->info.server_name = connection_string;
NetworkRebuildHostList();
UpdateNetworkGameWindow();
NetworkQueryServer(connection_string);
}
if (manually) item->manually = true;
@@ -827,12 +827,13 @@ public:
void OnQueryTextFinished(char *str) override
{
if (!StrEmpty(str)) {
strecpy(_settings_client.network.connect_to_ip, str, lastof(_settings_client.network.connect_to_ip));
NetworkAddServer(str);
void OnResize() override
this->vscroll->SetCapacityFromWidget(this, WID_NG_MATRIX);
Status change: