Skip to content

Commit

Permalink
feat: show error dialogs as topmost
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jul 31, 2024
1 parent db2c441 commit 9c6b27c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/wm/src/common/platform/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ use windows::{
PostThreadMessageW, RegisterClassW, SetCursorPos,
SystemParametersInfoW, TranslateMessage, WindowFromPoint,
ANIMATIONINFO, CS_HREDRAW, CS_VREDRAW, CW_USEDEFAULT, GA_ROOT,
MB_ICONERROR, MB_OK, MSG, PM_REMOVE, SPI_GETANIMATION,
SPI_SETANIMATION, SW_NORMAL, SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS,
WM_QUIT, WNDCLASSW, WNDPROC, WS_OVERLAPPEDWINDOW,
MB_ICONERROR, MB_OK, MB_SYSTEMMODAL, MSG, PM_REMOVE,
SPI_GETANIMATION, SPI_SETANIMATION, SW_NORMAL,
SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, WM_QUIT, WNDCLASSW, WNDPROC,
WS_OVERLAPPEDWINDOW,
},
},
},
Expand Down Expand Up @@ -441,7 +442,7 @@ impl Platform {
None,
PCWSTR(message_wide.as_ptr()),
PCWSTR(title_wide.as_ptr()),
MB_ICONERROR | MB_OK,
MB_ICONERROR | MB_OK | MB_SYSTEMMODAL,
);
}
}
Expand Down

0 comments on commit 9c6b27c

Please sign in to comment.