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: 1 addition & 1 deletion scripts/dashx/app/modules/model/tools/triggers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ local function openPage(pageIdx, title, script)
local member = newValue:member()
local category = newValue:category()
local options = newValue:options()
dashx.session.modelPreferences.inflightswitch = category .. ":" .. member .. ":" .. options
dashx.session.modelPreferences.model.inflightswitch = category .. ":" .. member .. ":" .. options
end
end
)
Expand Down
8 changes: 4 additions & 4 deletions scripts/dashx/tasks/sensors/smart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ local smart_sensors = {
minimum = 0,
maximum = 1,
value = function()
if dashx.preferences.model then
local settings = dashx.preferences.model
if dashx.session.modelPreferences.model then
local settings = dashx.session.modelPreferences.model
if settings.armswitch then
local category, member, options = settings.armswitch:match("([^:]+):([^:]+):([^:]+)")

Expand All @@ -143,8 +143,8 @@ local smart_sensors = {
minimum = 0,
maximum = 1,
value = function()
if dashx.preferences.model then
local settings = dashx.preferences.model
if dashx.session.modelPreferences.model then
local settings = dashx.session.modelPreferences.model
if settings.inflightswitch then
local category, member, options = settings.inflightswitch:match("([^:]+):([^:]+):([^:]+)")

Expand Down