mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:50:18 +00:00
chore(main): collapse duplicate code for menu hidden or disabled
This commit is contained in:
@@ -301,16 +301,11 @@ fn run() -> Result<()> {
|
|||||||
force_boot_menu = true;
|
force_boot_menu = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
BootloaderInterfaceTimeout::MenuHidden => {
|
BootloaderInterfaceTimeout::MenuHidden | BootloaderInterfaceTimeout::MenuDisabled => {
|
||||||
// Hide the boot menu by setting the timeout to zero.
|
// Hide the boot menu by setting the timeout to zero.
|
||||||
menu_timeout = 0;
|
menu_timeout = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
BootloaderInterfaceTimeout::MenuDisabled => {
|
|
||||||
// Disable the boot menu by setting the timeout to zero.
|
|
||||||
menu_timeout = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BootloaderInterfaceTimeout::Timeout(timeout) => {
|
BootloaderInterfaceTimeout::Timeout(timeout) => {
|
||||||
// Configure the timeout to the specified value.
|
// Configure the timeout to the specified value.
|
||||||
menu_timeout = timeout;
|
menu_timeout = timeout;
|
||||||
|
|||||||
Reference in New Issue
Block a user