This commit is contained in:
kepler155c
2018-11-16 10:26:41 -05:00
parent 3e756abe42
commit b73775ad93
3 changed files with 48 additions and 23 deletions

View File

@@ -62,11 +62,11 @@ local jobMonitor = UI.Page {
{ heading = 'Qty', key = 'remaining', width = 4 },
{ heading = 'Crafting', key = 'displayName', },
{ heading = 'Status', key = 'status', },
-- { heading = 'need', key = 'need', width = 4 },
{ heading = 'need', key = 'need', width = 4 },
-- { heading = 'total', key = 'total', width = 4 },
-- { heading = 'used', key = 'used', width = 4 },
-- { heading = 'count', key = 'count', width = 4 },
{ heading = 'crafted', key = 'crafted', width = 4 },
{ heading = 'crafted', key = 'crafted', width = 5 },
-- { heading = 'Progress', key = 'progress', width = 8 },
},
},

View File

@@ -37,7 +37,19 @@ local listingPage = UI.Page {
{ text = 'Craft', event = 'craft' },
{ text = 'Edit', event = 'details' },
{ text = 'Refresh', event = 'refresh', x = -12 },
{ text = '\206', event = 'network', x = -3 },
{
text = '\206',
x = -3,
dropdown = {
{ text = 'Setup', event = 'network' },
UI.MenuBar.spacer,
{
text = 'Rescan storage',
event = 'rescan',
help = 'Rescan all inventories'
},
},
},
},
},
grid = UI.Grid {
@@ -175,9 +187,14 @@ function listingPage:eventHandler(event)
end
elseif event.type == 'refresh' then
self:refresh()
self.grid:draw()
self:setFocus(self.statusBar.filter)
elseif event.type == 'rescan' then
self:refresh(true)
self.grid:draw()
self.statusBar.filter:focus()
self:setFocus(self.statusBar.filter)
elseif event.type == 'toggle_display' then
local values = {