Skip to content

Commit

Permalink
Include INFO type in reloadRelatedFields()
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Oct 2, 2023
1 parent 1ff9458 commit 1913fa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lua/elrsV3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,10 @@ local function reloadRelatedFields(field)
for fieldId = fields_count, 1, -1 do
-- Skip this field, will be added to end
local fldTest = fields[fieldId]
local fldType = fldTest.type or 99 -- type could be nil if still loading
if fieldId ~= field.id
and fldTest.parent == field.parent
and (fldTest.type or 99) < 11 then -- type could be nil if still loading
and fldType ~= 11 and fldType ~= 13 then -- ignores FOLDER/COMMAND
fldTest.nc = true -- "no cache" the options
loadQ[#loadQ+1] = fieldId
end
Expand Down

0 comments on commit 1913fa0

Please sign in to comment.