Rename close window functions to match upstream
This commit is contained in:
@@ -744,7 +744,7 @@ public:
|
||||
{
|
||||
switch (widget) {
|
||||
case WID_NG_CANCEL: // Cancel button
|
||||
DeleteWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_GAME);
|
||||
CloseWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_GAME);
|
||||
break;
|
||||
|
||||
case WID_NG_NAME: // Sort by name
|
||||
@@ -1035,7 +1035,7 @@ static WindowDesc _network_game_window_desc(
|
||||
void ShowNetworkGameWindow()
|
||||
{
|
||||
static bool first = true;
|
||||
DeleteWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_START);
|
||||
CloseWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_START);
|
||||
|
||||
/* Only show once */
|
||||
if (first) {
|
||||
@@ -1309,7 +1309,7 @@ static void ShowNetworkStartServerWindow()
|
||||
{
|
||||
if (!NetworkValidateOurClientName()) return;
|
||||
|
||||
DeleteWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_GAME);
|
||||
CloseWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_GAME);
|
||||
|
||||
new NetworkStartServerWindow(&_network_start_server_window_desc);
|
||||
}
|
||||
@@ -2301,7 +2301,7 @@ static WindowDesc _network_join_status_window_desc(
|
||||
|
||||
void ShowJoinStatusWindow()
|
||||
{
|
||||
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, WN_NETWORK_STATUS_WINDOW_JOIN);
|
||||
CloseWindowById(WC_NETWORK_STATUS_WINDOW, WN_NETWORK_STATUS_WINDOW_JOIN);
|
||||
new NetworkJoinStatusWindow(&_network_join_status_window_desc);
|
||||
}
|
||||
|
||||
@@ -2423,7 +2423,7 @@ static WindowDesc _network_company_password_window_desc(
|
||||
|
||||
void ShowNetworkCompanyPasswordWindow(Window *parent)
|
||||
{
|
||||
DeleteWindowById(WC_COMPANY_PASSWORD_WINDOW, 0);
|
||||
CloseWindowById(WC_COMPANY_PASSWORD_WINDOW, 0);
|
||||
|
||||
new NetworkCompanyPasswordWindow(&_network_company_password_window_desc, parent);
|
||||
}
|
||||
@@ -2532,7 +2532,7 @@ static WindowDesc _network_ask_relay_desc(
|
||||
*/
|
||||
void ShowNetworkAskRelay(const std::string &server_connection_string, const std::string &relay_connection_string, const std::string &token)
|
||||
{
|
||||
DeleteWindowByClass(WC_NETWORK_ASK_RELAY);
|
||||
CloseWindowByClass(WC_NETWORK_ASK_RELAY);
|
||||
|
||||
Window *parent = GetMainWindow();
|
||||
new NetworkAskRelayWindow(&_network_ask_relay_desc, parent, server_connection_string, relay_connection_string, token);
|
||||
|
Reference in New Issue
Block a user