Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/main.cpp

Issue 11276031: FRP wrappers. "Update" menu item. (Closed)
Patch Set: Comments addressed Created Aug. 8, 2013, 2:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/engine/main.cpp
===================================================================
--- a/src/engine/main.cpp
+++ b/src/engine/main.cpp
@@ -40,7 +40,7 @@
}
}
- bool updateAvailable;
+ bool updateAvailable = false;
void UpdateCallback(const std::string res)
{
if (updateAvailable)
@@ -50,16 +50,15 @@
{
std::wstring upToDateText = dictionary->Lookup("updater", "update-already-up-to-date-text");
std::wstring upToDateTitle = dictionary->Lookup("updater", "update-already-up-to-date-title");
- MessageBox(NULL, upToDateText.c_str(), upToDateTitle.c_str(), MB_OK);
+ MessageBox(NULL, upToDateText.c_str(), upToDateTitle.c_str(), MB_ICONINFORMATION);
Wladimir Palant 2013/08/13 09:19:51 Not sure why but this change isn't present in the
}
else
{
std::wstring errorText = dictionary->Lookup("updater", "update-error-text");
std::wstring errorTitle = dictionary->Lookup("updater", "update-error-title");
ReplaceString(errorText, L"?1?", ToUtf16String(res));
- MessageBox(NULL, errorText.c_str(), errorTitle.c_str(), MB_OK);
+ MessageBox(NULL, errorText.c_str(), errorTitle.c_str(), MB_ICONEXCLAMATION);
Wladimir Palant 2013/08/13 09:19:51 Not sure why but this change isn't present in the
}
- return;
Wladimir Palant 2013/08/13 09:19:51 This change isn't present in the current code.
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld