win32: Hide entry control if no hotkey binding is there.

This commit is contained in:
BearOso 2023-03-31 17:54:36 -05:00
parent 2a6b040f3e
commit 2cb8fd06e6
1 changed files with 8 additions and 2 deletions

View File

@ -8359,6 +8359,12 @@ static void set_hotkeyinfo(HWND hDlg)
for (int i = 0; i < MAX_SWITCHABLE_HOTKEY_DIALOG_ITEMS; i++)
{
int flags = SW_SHOWNOACTIVATE;
if (hotkey_dialog_items[index][i].key_entry == NULL)
flags = SW_HIDE;
ShowWindow(GetDlgItem(hDlg, IDC_HOTKEY1 + i), flags);
ShowWindow(GetDlgItem(hDlg, IDC_LABEL_HK1 + i), flags);
int wParam = 0, lParam = 0;
if (hotkey_dialog_items[index][i].key_entry)
{