Rename close window functions to match upstream

This commit is contained in:
Jonathan G Rennison
2023-09-15 20:59:08 +01:00
parent ed1b842ad3
commit a18f3274b4
75 changed files with 291 additions and 299 deletions

View File

@@ -114,7 +114,7 @@ struct GSConfigWindow : public Window {
~GSConfigWindow()
{
HideDropDownMenu(this);
DeleteWindowByClass(WC_SCRIPT_LIST);
CloseWindowByClass(WC_SCRIPT_LIST);
}
/**
@@ -281,7 +281,7 @@ struct GSConfigWindow : public Window {
int num = it - this->visible_settings.begin();
if (this->clicked_row != num) {
this->DeleteChildWindows(WC_QUERY_STRING);
this->CloseChildWindows(WC_QUERY_STRING);
HideDropDownMenu(this);
this->clicked_row = num;
this->clicked_dropdown = false;
@@ -419,7 +419,7 @@ struct GSConfigWindow : public Window {
}
this->RebuildVisibleSettings();
HideDropDownMenu(this);
this->DeleteChildWindows(WC_QUERY_STRING);
this->CloseChildWindows(WC_QUERY_STRING);
}
private:
bool IsEditableItem(const ScriptConfigItem &config_item) const
@@ -442,6 +442,6 @@ private:
/** Open the GS config window. */
void ShowGSConfigWindow()
{
DeleteWindowByClass(WC_GAME_OPTIONS);
CloseWindowByClass(WC_GAME_OPTIONS);
new GSConfigWindow();
}