[RAPPS] Reflect installation status it download dialog header.
authorAlexander Shaposhnikov <sanchaez@reactos.org>
Sun, 5 Nov 2017 18:44:27 +0000 (20:44 +0200)
committerAlexander Shaposhnikov <sanchaez@reactos.org>
Sun, 5 Nov 2017 18:44:27 +0000 (20:44 +0200)
Pointed out by Mark Jansen

base/applications/rapps/loaddlg.cpp

index 166b383..0d3d554 100644 (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);