refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-23 08:14:22 +02:00
parent c2f7311349
commit 99ba3e7fdc
15 changed files with 51 additions and 41 deletions
+2 -2
View File
@@ -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)))