Fix active entry not displayed

This commit is contained in:
emanuele-f 2019-06-18 17:18:56 +02:00
parent dc2071ede2
commit 7c5983d0a5

View file

@ -338,7 +338,7 @@ end
-- Prints the menu from the populated graph_menu_entries.
-- The entry_print_callback is called to print the actual entries.
function printGraphMenuEntries(entry_print_callback)
function printGraphMenuEntries(entry_print_callback, active_entry)
local active_entries = {}
local active_idx = 1 -- index in active_entries
local needs_separator = false
@ -350,6 +350,11 @@ function printGraphMenuEntries(entry_print_callback)
separator_label = separator_label or entry.separator_label
end
if(active_entry == entry) then
-- Always consider the selected entry as active
entry.pending = 0
end
if(entry.pending and (entry.pending > 0)) then
-- not verified, act like it does not exist
goto continue