Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/SCRIPTS/BF/PAGES/vtx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ end

if apiVersion >= 1.037 then
fields[#fields + 1] = { t = "Frequency", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 5000, max = 5999, vals = { 6 }, upd = function(self) self.handleFreqValUpdate(self) end }
elseif apiVersion >= 1.036 then
fields[#fields + 1] = { t = "Frequency", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 5000, max = 5999, ro = true }
end

-- Vals Fields
Expand Down
2 changes: 1 addition & 1 deletion src/SCRIPTS/BF/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ local function run_ui(event)
elseif event == EVT_VIRTUAL_ENTER then
if Page then
local f = Page.fields[currentField]
if Page.values and Page.values[f.vals[#f.vals]] and not f.ro then
if Page.values and f.vals and Page.values[f.vals[#f.vals]] and not f.ro then
pageState = pageStatus.editing
end
end
Expand Down