MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnQueryTextFinished

Method OnQueryTextFinished

src/network/network_gui.cpp:816–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814 }
815
816 void OnQueryTextFinished(std::optional<std::string> str) override
817 {
818 if (!str.has_value() || str->empty()) return;
819
820 _settings_client.network.connect_to_ip = std::move(*str);
821 NetworkAddServer(_settings_client.network.connect_to_ip);
822 NetworkRebuildHostList();
823 }
824
825 void OnResize() override
826 {

Callers

nothing calls this directly

Calls 3

NetworkAddServerFunction · 0.85
NetworkRebuildHostListFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected