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

Method OnQueryTextFinished

src/network/network_gui.cpp:2089–2097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2087 }
2088
2089 void OnQueryTextFinished(std::optional<std::string> str) override
2090 {
2091 if (!str.has_value() || str->empty() || this->request == nullptr) {
2092 NetworkDisconnect();
2093 return;
2094 }
2095
2096 this->request->Reply(*str);
2097 }
2098};
2099
2100static constexpr std::initializer_list<NWidgetPart> _nested_network_join_status_window_widgets = {

Callers

nothing calls this directly

Calls 3

NetworkDisconnectFunction · 0.85
ReplyMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected