mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-02 12:21:23 +00:00
Avoid closing the updater dialog when the window close button is clicked.
This prevents the user closing the dialog whilst the update is in progress. Once the update has been installed, the user can click the 'Finish' button to close the dialog and restart the application.
This commit is contained in:
parent
448d43c5e0
commit
3a7d41e630
1 changed files with 6 additions and 0 deletions
|
@ -147,6 +147,12 @@ LRESULT WINAPI UpdateDialogWin32::windowProc(HWND window, UINT message, WPARAM w
|
|||
{
|
||||
switch (message)
|
||||
{
|
||||
case WM_CLOSE:
|
||||
if (window == m_window.GetHwnd())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case WM_COMMAND:
|
||||
{
|
||||
if (reinterpret_cast<HWND>(lParam) == m_finishButton.GetHwnd())
|
||||
|
|
Loading…
Reference in a new issue