[RAPPS] Hide the main window during active download/install if the user closes it (#7014)

This commit is contained in:
Whindmar Saksit 2024-09-26 18:58:30 +02:00 committed by GitHub
parent 2f83e6a65d
commit 053939e27c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 55 additions and 2 deletions

View file

@ -470,6 +470,7 @@ CDownloadManager::DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lPa
{
case WM_INITDIALOG:
{
g_Busy++;
HICON hIconSm, hIconBg;
CStringW szTempCaption;
@ -557,6 +558,12 @@ CDownloadManager::DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lPa
}
return TRUE;
case WM_DESTROY:
g_Busy--;
if (hMainWnd)
PostMessage(hMainWnd, WM_NOTIFY_OPERATIONCOMPLETED, 0, 0);
return FALSE;
default:
return FALSE;
}