Fix a typo in wxWebRequest use example

s/IsOK/IsOk/ and also make the example slightly more verbose.
This commit is contained in:
Vadim Zeitlin
2021-03-22 18:22:28 +01:00
parent 7d9b01afd9
commit ce91a5d0ff

View File

@@ -45,8 +45,11 @@
case wxWebRequest::State_Completed:
{
wxImage logoImage(*evt.GetResponse().GetStream());
if (logoImage.IsOK())
wxLogInfo("Image loaded");
if (logoImage.IsOk())
wxLogInfo("Image successfully downloaded");
... do something with it ...
break;
}
// Request failed