Skip to content

Commit

Permalink
also persist the inside_containers setting
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 30, 2024
1 parent 139a84e commit f7886a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/caravan/pedestal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ local filters = {
max_quality=6,
hide_unreachable=true,
hide_forbidden=false,
inside_containers=true,
}

-- -------------------
Expand Down Expand Up @@ -383,8 +384,11 @@ function AssignItems:init()
{label='Yes', value=true, pen=COLOR_GREEN},
{label='No', value=false}
},
initial_option=true,
on_change=function() self:refresh_list() end,
initial_option=filters.inside_containers,
on_change=function(val)
filters.inside_containers = val
self:refresh_list()
end,
},
widgets.WrappedLabel{
frame={b=0, l=0, r=0},
Expand Down

0 comments on commit f7886a5

Please sign in to comment.