mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[loc] fix alert hook handling when switching language
* Because the localized title/button text lookup was only executed once on startup, it wouldn't apply to the new language on relaunch. Fix that.
This commit is contained in:
parent
7e21f8a60c
commit
924c6b1a79
4 changed files with 14 additions and 10 deletions
|
@ -3155,8 +3155,9 @@ relaunch:
|
|||
ChangeWindowMessageFilter(WM_COPYGLOBALDATA, MSGFLT_ADD);
|
||||
|
||||
// Set the hook to automatically close Windows' "You need to format the disk in drive..." prompt
|
||||
SetAlertPromptMessages();
|
||||
if (!SetAlertPromptHook())
|
||||
uprintf("Warning: Could not set alert prompts hook");
|
||||
uprintf("Warning: Could not set alert prompt hook");
|
||||
|
||||
ShowWindow(hDlg, SW_SHOWNORMAL);
|
||||
UpdateWindow(hDlg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue