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:
beaglejoe 2021-07-09 12:39:31 -05:00 committed by Jessica Hamilton
parent 34fe8ba793
commit 66d0470035

View File

@ -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());
}
}
}
}