recipe reorg + milo fixes

This commit is contained in:
kepler155c
2018-11-19 13:52:32 -05:00
parent 2605410c6d
commit 6b11b29bba
13 changed files with 36 additions and 22 deletions

View File

@@ -252,15 +252,20 @@ function listingPage:enable()
self:sync()
end)
self.handler = Event.on({ 'storage_offline', 'storage_online' }, function(_, isOnline)
local function updateStatus()
self.statusBar.storageStatus.value =
isOnline and '' or 'offline'
context.storage:isOnline() and '' or 'offline'
self.statusBar.storageStatus.textColor =
isOnline and colors.lime or colors.red
context.storage:isOnline() and colors.lime or colors.red
end
self.handler = Event.on({ 'storage_offline', 'storage_online' }, function()
updateStatus()
self.statusBar.storageStatus:draw()
self:sync()
end)
updateStatus()
UI.Page.enable(self)
end