mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 06:25:29 -04:00
[ui] fix label not being blanked on device removal
* Part of #694 * Also set rufus-next to 2.8
This commit is contained in:
parent
f88faf1a4f
commit
9ebdecc124
4 changed files with 21 additions and 19 deletions
|
@ -702,10 +702,12 @@ static BOOL PopulateProperties(int ComboIndex)
|
|||
memset(&SelectedDrive, 0, sizeof(SelectedDrive));
|
||||
|
||||
if (ComboIndex < 0)
|
||||
return TRUE;
|
||||
goto out;
|
||||
|
||||
if (!SetDriveInfo(ComboIndex)) // This also populates FS
|
||||
if (!SetDriveInfo(ComboIndex)) { // This also populates FS
|
||||
SetProposedLabel(-1);
|
||||
return FALSE;
|
||||
}
|
||||
SetTargetSystem();
|
||||
SetFSFromISO();
|
||||
EnableBootOptions(TRUE, TRUE);
|
||||
|
@ -723,8 +725,8 @@ static BOOL PopulateProperties(int ComboIndex)
|
|||
free(device_tooltip);
|
||||
}
|
||||
|
||||
out:
|
||||
SetProposedLabel(ComboIndex);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue