mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[ui] fix Quick Format being disabled when no device is plugged
This commit is contained in:
parent
f1f6e4b4ea
commit
4ee90a9546
2 changed files with 9 additions and 7 deletions
|
@ -778,9 +778,11 @@ static void EnableBootOptions(BOOL enable, BOOL remove_checkboxes)
|
|||
{
|
||||
BOOL actual_enable_bb, actual_enable = enable;
|
||||
|
||||
// If no device is selected, don't enable anything
|
||||
if (ComboBox_GetCurSel(hDeviceList) < 0)
|
||||
// If no device is selected, don't enable anything and also don't remove the checkboxes
|
||||
if (ComboBox_GetCurSel(hDeviceList) < 0) {
|
||||
actual_enable = FALSE;
|
||||
remove_checkboxes = FALSE;
|
||||
}
|
||||
// If boot selection is set to image, but no image is currently selected, don't enable anything
|
||||
if ((boot_type == BT_IMAGE) && (image_path == NULL))
|
||||
actual_enable = FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue