mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[ui] fix UI elements that don't match commandline parameters
This commit is contained in:
parent
865678b4b7
commit
c2ba8fc0d2
2 changed files with 14 additions and 17 deletions
21
src/rufus.c
21
src/rufus.c
|
@ -67,7 +67,7 @@ static BOOL app_changed_label = FALSE;
|
|||
static BOOL allowed_filesystem[FS_MAX] = { 0 };
|
||||
static int64_t last_iso_blocking_status;
|
||||
static int selected_pt = -1, selected_fs = FS_UNKNOWN, preselected_fs = FS_UNKNOWN;
|
||||
static int image_index;
|
||||
static int image_index = 0;
|
||||
static RECT relaunch_rc = { -65536, -65536, 0, 0};
|
||||
static UINT uQFChecked = BST_CHECKED, uMBRChecked = BST_UNCHECKED;
|
||||
static HANDLE format_thid = NULL, dialog_handle = NULL;
|
||||
|
@ -1008,19 +1008,14 @@ static void DisplayISOProps(void)
|
|||
// Insert the image name into the Boot selection dropdown
|
||||
static void UpdateImage(void)
|
||||
{
|
||||
int index;
|
||||
assert(image_index != 0);
|
||||
|
||||
for (index = 0; index < ComboBox_GetCount(hBootType); index++) {
|
||||
if (ComboBox_GetItemData(hBootType, index) == BT_IMAGE) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ComboBox_DeleteString(hBootType, index);
|
||||
ComboBox_InsertStringU(hBootType, index,
|
||||
if (ComboBox_GetItemData(hBootType, image_index) == BT_IMAGE)
|
||||
ComboBox_DeleteString(hBootType, image_index);
|
||||
ComboBox_InsertStringU(hBootType, image_index,
|
||||
(image_path == NULL) ? lmprintf(MSG_281, lmprintf(MSG_280)) : short_image_path);
|
||||
ComboBox_SetItemData(hBootType, index, BT_IMAGE);
|
||||
IGNORE_RETVAL(ComboBox_SetCurSel(hBootType, index));
|
||||
ComboBox_SetItemData(hBootType, image_index, BT_IMAGE);
|
||||
IGNORE_RETVAL(ComboBox_SetCurSel(hBootType, image_index));
|
||||
bt = (int)ComboBox_GetItemData(hBootType, ComboBox_GetCurSel(hBootType));
|
||||
SetBootTypeDropdownWidth();
|
||||
}
|
||||
|
@ -1657,6 +1652,8 @@ static void InitDialog(HWND hDlg)
|
|||
}
|
||||
SetBootTypeDropdownWidth();
|
||||
|
||||
CheckDlgButton(hMainDialog, IDC_LIST_USB_HDD, enable_HDDs ? BST_CHECKED : BST_UNCHECKED);
|
||||
|
||||
PrintInfo(0, MSG_210);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue