mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[ui] fix file system being reset when switching languages
* Also add a <Ctrl>-<L> cheat mode to toggle the log window
This commit is contained in:
parent
7757cab3c5
commit
fd08cf4745
2 changed files with 12 additions and 5 deletions
|
@ -1891,6 +1891,8 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
|
|||
if (selected_locale != lcmd) {
|
||||
selected_locale = lcmd;
|
||||
selected_langid = get_language_id(lcmd);
|
||||
// Avoid the FS being reset on language change
|
||||
selected_fs = (int)ComboBox_GetItemData(hFileSystem, ComboBox_GetCurSel(hFileSystem));
|
||||
relaunch = TRUE;
|
||||
PostMessage(hDlg, WM_COMMAND, IDCANCEL, 0);
|
||||
}
|
||||
|
@ -3104,6 +3106,11 @@ relaunch:
|
|||
Edit_SetSel(hLog, 0, -1);
|
||||
continue;
|
||||
}
|
||||
// Ctrl-L => Open/Close the log
|
||||
if ((GetKeyState(VK_CONTROL) & 0x8000) && (msg.message == WM_KEYDOWN) && (msg.wParam == 'L')) {
|
||||
SendMessage(hMainDialog, WM_COMMAND, IDC_LOG, 0);
|
||||
continue;
|
||||
}
|
||||
// Alt-. => Enable USB enumeration debug
|
||||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == VK_OEM_PERIOD)) {
|
||||
usb_debug = !usb_debug;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue