mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 07:52:51 +02:00
- disable join button when auto searching for servers
This commit is contained in:
@@ -167,6 +167,7 @@ void MenuStateJoinGame::DiscoveredServers(std::vector<string> serverList) {
|
||||
|
||||
autoConnectToServer = false;
|
||||
buttonAutoFindServers.setEnabled(true);
|
||||
buttonConnect.setEnabled(true);
|
||||
if(serverList.size() > 0) {
|
||||
string bestIPMatch = "";
|
||||
std::vector<std::string> localIPList = Socket::getLocalIPAddressList();
|
||||
@@ -270,6 +271,7 @@ void MenuStateJoinGame::mouseClick(int x, int y, MouseButton mouseButton)
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
buttonAutoFindServers.setEnabled(false);
|
||||
buttonConnect.setEnabled(false);
|
||||
clientInterface->discoverServers(this);
|
||||
}
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
Reference in New Issue
Block a user