refactoring
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
module 'post_tab'
|
||||
module 'post_tab' import 'scan' 'post'
|
||||
|
||||
local DURATION_4, DURATION_8, DURATION_24 = 120, 480, 1440
|
||||
local settings_schema = {'record', '#', {stack_size='number'}, {duration='number'}, {start_price='number'}, {buyout_price='number'}, {hidden='boolean'}}
|
||||
@@ -88,7 +88,7 @@ end
|
||||
|
||||
function update_inventory_listing()
|
||||
if not ACTIVE then return end
|
||||
item_listing.populate(item_listing, values(filter(inventory_records, function(record)
|
||||
inventory_listing.populate(inventory_listing, values(filter(inventory_records, function(record)
|
||||
local settings = read_settings(record.key)
|
||||
return record.aux_quantity > 0 and (not settings.hidden or show_hidden_checkbox:GetChecked())
|
||||
end)))
|
||||
|
||||
Reference in New Issue
Block a user