fuzzy recipe ingredients

This commit is contained in:
kepler155c
2018-02-20 01:15:31 -05:00
parent 2cfa6c8c7f
commit cfc1502f2a
2 changed files with 225 additions and 208 deletions

View File

@@ -63,7 +63,6 @@ local page = UI.Page {
accelerators = {
q = 'quit',
space = 'grid_select',
t = 'terminate',
},
}
@@ -104,16 +103,19 @@ end
function page:eventHandler(event)
if event.type == 'grid_select' then
local recipes = self.grid:getSelected()
recipes.enabled = not recipes.enabled
local book = self.grid:getSelected()
book.enabled = not book.enabled
self.info:draw()
self.grid:draw()
self:save()
elseif event.type == 'grid_focus_row' then
self.info:draw()
elseif event.type == 'quit' then
UI:exitPullEvents()
end
UI.Page.eventHandler(self, event)
end