[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

@ -367,6 +367,7 @@ ParseCmdAndExecute(LPWSTR lpCmdLine, BOOL bIsFirstLaunch, int nCmdShow)
if (hWindow)
{
/* Activate the window in the other instance */
ShowWindow(hWindow, SW_SHOW);
SwitchToThisWindow(hWindow, TRUE);
if (bAppwizMode)
PostMessage(hWindow, WM_COMMAND, ID_ACTIVATE_APPWIZ, 0);