From 5904733930e0990d6269aec039a157a59d84219a Mon Sep 17 00:00:00 2001 From: MikeBeaton Date: Sat, 22 May 2021 11:03:17 +0100 Subject: [PATCH] OpenCanopy: Fix reversion - system tools should fail to Tool.icns before failing to HardDrive.icns --- Platform/OpenCanopy/Views/BootPicker.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Platform/OpenCanopy/Views/BootPicker.c b/Platform/OpenCanopy/Views/BootPicker.c index 5fccff9e..a9a42d32 100644 --- a/Platform/OpenCanopy/Views/BootPicker.c +++ b/Platform/OpenCanopy/Views/BootPicker.c @@ -1511,13 +1511,10 @@ BootPickerEntriesSet ( { SuggestedIcon = NULL; - switch (Entry->Type) { - case OC_BOOT_EXTERNAL_OS: + if (Entry->Type == OC_BOOT_EXTERNAL_OS) { SuggestedIcon = &GuiContext->Icons[ICON_OTHER][IconTypeIndex]; - break; - case OC_BOOT_EXTERNAL_TOOL: + } else if (Entry->Type == OC_BOOT_EXTERNAL_TOOL || (Entry->Type & OC_BOOT_SYSTEM) != 0) { SuggestedIcon = &GuiContext->Icons[ICON_TOOL][IconTypeIndex]; - break; } if (SuggestedIcon == NULL || SuggestedIcon->Buffer == NULL) { -- GitLab