Removed commented code
This commit is contained in:
parent
e9a68f4614
commit
a07a801cab
@ -704,51 +704,6 @@ local PAGES = {
|
|||||||
reloadState()
|
reloadState()
|
||||||
|
|
||||||
return renderDefault(state, screenContainer)
|
return renderDefault(state, screenContainer)
|
||||||
--[[
|
|
||||||
if pageState.stacks == nil then
|
|
||||||
pageState.stacks = ItemGroup.collectStacks(state.controller:find(function(stack)
|
|
||||||
return not stack:isEmpty()
|
|
||||||
end))
|
|
||||||
|
|
||||||
table.sort(pageState.stacks, function(a, b) return a:getItemCount() > b:getItemCount() end)
|
|
||||||
end
|
|
||||||
|
|
||||||
local listResult, listState = itemList(
|
|
||||||
pageState.stacks,
|
|
||||||
state.width,
|
|
||||||
state.height,
|
|
||||||
pageState.listState,
|
|
||||||
function(element, x, y, source, group)
|
|
||||||
state:setPage("GROUP_DETAIL", group)
|
|
||||||
return true
|
|
||||||
end,
|
|
||||||
function(page)
|
|
||||||
if page == nil then
|
|
||||||
state:reloadPage()
|
|
||||||
else
|
|
||||||
state:setPage(page)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
function()
|
|
||||||
print("Importing...")
|
|
||||||
state.node:rescan()
|
|
||||||
-- Safely handle transfers, priming computer for a full reset/rescan in case server stops mid-transaction
|
|
||||||
state:itemTransaction(function()
|
|
||||||
for _,nodeStack in ipairs(state.node:find(function(s) return not s:isEmpty() end)) do
|
|
||||||
if not state.controller:insertStack(nodeStack) then
|
|
||||||
print("Couldn't find a free slot for: "..nodeStack:getSimpleName())
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
-- Force reload stacks
|
|
||||||
state:currentPageState({}).stacks = nil
|
|
||||||
state:reloadPage()
|
|
||||||
end
|
|
||||||
)
|
|
||||||
pageState.listState = listState
|
|
||||||
|
|
||||||
return renderDefault(state, listResult)
|
|
||||||
]]--
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
GROUP_DETAIL = function(state)
|
GROUP_DETAIL = function(state)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user