Skip to content

Commit

Permalink
Hide error recovery suggestion if there isn't one
Browse files Browse the repository at this point in the history
Previously, we'd just display whatever the previous suggestion was, or the
untranslated English placeholder string from the template if there was no
previous suggestion.
  • Loading branch information
wjt committed Oct 25, 2017
1 parent adb09b7 commit a015809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endless/EndlessUsbToolDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1857,8 +1857,8 @@ void CEndlessUsbToolDlg::ErrorOccured(ErrorCause_t errorCause)
SetElementText(_T(ELEMENT_ERROR_DELETE_TEXT), deleteFilesText);

// Update the error description and "recovery" suggestion
CComBSTR message("");
if (suggestionMsgId != 0) {
CComBSTR message;
if (suggestionMsgId == MSG_334 || suggestionMsgId == MSG_303) {
// Not enough space to download
const CStringA downloadDriveA = ConvertUnicodeToUTF8(CEndlessUsbToolApp::m_imageDir.Left(3));
Expand All @@ -1883,8 +1883,8 @@ void CEndlessUsbToolDlg::ErrorOccured(ErrorCause_t errorCause)
} else {
message = UTF8ToBSTR(lmprintf(suggestionMsgId));
}
SetElementText(_T(ELEMENT_ERROR_SUGGESTION), message);
}
SetElementText(_T(ELEMENT_ERROR_SUGGESTION), message);

if (m_taskbarProgress != NULL) {
m_taskbarProgress->SetProgressState(m_hWnd, TBPF_ERROR);
Expand Down

0 comments on commit a015809

Please sign in to comment.