mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
Codechange: Use EncodedString for Query window. (#13528)
This removes the need to separately capture and store global parameters.
This commit is contained in:
@@ -841,7 +841,10 @@ public:
|
||||
|
||||
case WID_GL_DELETE_GROUP: { // Delete the selected group
|
||||
this->group_confirm = this->vli.ToGroupID();
|
||||
ShowQuery(STR_QUERY_GROUP_DELETE_CAPTION, STR_GROUP_DELETE_QUERY_TEXT, this, DeleteGroupCallback);
|
||||
ShowQuery(
|
||||
GetEncodedString(STR_QUERY_GROUP_DELETE_CAPTION),
|
||||
GetEncodedString(STR_GROUP_DELETE_QUERY_TEXT),
|
||||
this, DeleteGroupCallback);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user