loader: do not output empty menu title
As we output spaces around the menu title, we should also check, if the title is actually empty string. PR: 255299 Submitted by: Jose Luis Duran Reported by: Jose Luis Duran MFC after: 1 week
This commit is contained in:
parent
b563ff5d4f
commit
4ba91fa073
@ -490,7 +490,11 @@ also menu-infrastructure definitions
|
|||||||
menuX @ 19 + over 2 / - menuY @ 1-
|
menuX @ 19 + over 2 / - menuY @ 1-
|
||||||
then
|
then
|
||||||
swap 1- swap
|
swap 1- swap
|
||||||
at-xy space type space
|
at-xy dup 0= if
|
||||||
|
2drop ( empty loader_menu_title )
|
||||||
|
else
|
||||||
|
space type space
|
||||||
|
then
|
||||||
|
|
||||||
\ If $menu_init is set, evaluate it (allowing for whole menus to be
|
\ If $menu_init is set, evaluate it (allowing for whole menus to be
|
||||||
\ constructed dynamically -- as this function could conceivably set
|
\ constructed dynamically -- as this function could conceivably set
|
||||||
|
@ -286,7 +286,10 @@ local function drawbox()
|
|||||||
menu_header_x = x + (w // 2) - (#menu_header // 2)
|
menu_header_x = x + (w // 2) - (#menu_header // 2)
|
||||||
end
|
end
|
||||||
screen.setcursor(menu_header_x - 1, y)
|
screen.setcursor(menu_header_x - 1, y)
|
||||||
printc(" " .. menu_header .. " ")
|
if menu_header ~= "" then
|
||||||
|
printc(" " .. menu_header .. " ")
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function drawbrand()
|
local function drawbrand()
|
||||||
|
Loading…
Reference in New Issue
Block a user