From 66d04700359c8d4bf921baa94edd9f827214b811 Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Fri, 9 Jul 2021 12:39:31 -0500 Subject: [PATCH] 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 --- src/system/boot/loader/menu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/boot/loader/menu.cpp b/src/system/boot/loader/menu.cpp index 27e781c6af..195346342c 100644 --- a/src/system/boot/loader/menu.cpp +++ b/src/system/boot/loader/menu.cpp @@ -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()); + } } } }