[RAPPS] Reflect installation status it download dialog header.

Pointed out by Mark Jansen
This commit is contained in:
Alexander Shaposhnikov 2017-11-05 20:44:27 +02:00
parent a2a372398a
commit 47bbd637d8
No known key found for this signature in database
GPG key ID: 9EEC655FCB0EDE9F

View file

@ -804,7 +804,13 @@ run:
if (ShellExecuteExW(&shExInfo))
{
//reflect installation progress in the titlebar
//TODO: make a separate string with a placeholder to include app name?
ATL::CStringW szMsgText = LoadStatusString(DLSTATUS_INSTALLING);
SetWindowTextW(hDlg, szMsgText.GetString());
DownloadsListView.SetDownloadStatus(iAppId, DLSTATUS_INSTALLING);
//TODO: issue an install operation separately so that the apps could be downloaded in the background
WaitForSingleObject(shExInfo.hProcess, INFINITE);
CloseHandle(shExInfo.hProcess);