bootmenu: fix initial current boot volume selection
Fixes #17069 Change-Id: I42f6ecbad57d7d6b21bfbde2645f1d7112d650b8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4200 Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
This commit is contained in:
parent
34fe8ba793
commit
66d0470035
@ -1211,7 +1211,9 @@ add_boot_volume_item(Menu* menu, Directory* volume, const char* name)
|
||||
if (state == selectedState) {
|
||||
stateItem->SetMarked(true);
|
||||
stateItem->Select(true);
|
||||
item->UpdateStateName(stateItem->VolumeState());
|
||||
if (volume == sBootVolume->RootDirectory()) {
|
||||
item->UpdateStateName(stateItem->VolumeState());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user