| 795 | } |
| 796 | |
| 797 | void OnEditboxChanged(WidgetID wid) override |
| 798 | { |
| 799 | switch (wid) { |
| 800 | case WID_NG_FILTER: { |
| 801 | this->servers.ForceRebuild(); |
| 802 | this->BuildGUINetworkGameList(); |
| 803 | this->ScrollToSelectedServer(); |
| 804 | this->SetDirty(); |
| 805 | break; |
| 806 | } |
| 807 | |
| 808 | case WID_NG_CLIENT: |
| 809 | /* Validation of the name will happen once the user tries to join or start a game, as getting |
| 810 | * error messages while typing (e.g. when you clear the name) defeats the purpose of the check. */ |
| 811 | _settings_client.network.client_name = this->name_editbox.text.GetText(); |
| 812 | break; |
| 813 | } |
| 814 | } |
| 815 | |
| 816 | void OnQueryTextFinished(std::optional<std::string> str) override |
| 817 | { |
nothing calls this directly
no test coverage detected