chore(main): collapse duplicate code for menu hidden or disabled

This commit is contained in:
2025-11-01 18:38:08 -04:00
parent e9cba9da33
commit 992520c201

View File

@@ -301,16 +301,11 @@ fn run() -> Result<()> {
force_boot_menu = true;
}
BootloaderInterfaceTimeout::MenuHidden => {
BootloaderInterfaceTimeout::MenuHidden | BootloaderInterfaceTimeout::MenuDisabled => {
// Hide the boot menu by setting the timeout to zero.
menu_timeout = 0;
}
BootloaderInterfaceTimeout::MenuDisabled => {
// Disable the boot menu by setting the timeout to zero.
menu_timeout = 0;
}
BootloaderInterfaceTimeout::Timeout(timeout) => {
// Configure the timeout to the specified value.
menu_timeout = timeout;