Codechange: Use EncodedString for error messages. (#13569)
This commit is contained in:
@@ -957,7 +957,7 @@ public:
|
||||
void OnConnect(bool success) override
|
||||
{
|
||||
if (!success) {
|
||||
ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_CONNECT, INVALID_STRING_ID, WL_ERROR);
|
||||
ShowErrorMessage(GetEncodedString(STR_CONTENT_ERROR_COULD_NOT_CONNECT), {}, WL_ERROR);
|
||||
this->Close();
|
||||
return;
|
||||
}
|
||||
@@ -1150,7 +1150,10 @@ void ShowNetworkContentListWindow(ContentVector *cv, ContentType type1, ContentT
|
||||
CloseWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_CONTENT_LIST);
|
||||
new NetworkContentListWindow(_network_content_list_desc, cv != nullptr, types);
|
||||
#else
|
||||
ShowErrorMessage(STR_CONTENT_NO_ZLIB, STR_CONTENT_NO_ZLIB_SUB, WL_ERROR);
|
||||
ShowErrorMessage(
|
||||
GetEncodedString(STR_CONTENT_NO_ZLIB),
|
||||
GetEncodedString(STR_CONTENT_NO_ZLIB_SUB),
|
||||
WL_ERROR);
|
||||
/* Connection failed... clean up the mess */
|
||||
if (cv != nullptr) {
|
||||
for (ContentInfo *ci : *cv) delete ci;
|
||||
|
||||
Reference in New Issue
Block a user