milo shop updates

This commit is contained in:
kepler155c@gmail.com
2019-01-12 10:06:48 -05:00
parent 9921ede8fa
commit 91d434f93d
7 changed files with 69 additions and 29 deletions

View File

@@ -5,6 +5,7 @@ local Storage = require('storage')
local UI = require('ui')
local Util = require('util')
local colors = _G.colors
local device = _G.device
local fs = _G.fs
local multishell = _ENV.multishell
@@ -172,6 +173,11 @@ os.queueEvent(
context.storage:isOnline() and 'storage_online' or 'storage_offline',
context.storage:isOnline())
--os.queueEvent('milo_cycle')
UI:pullEvents()
for _, node in pairs(context.storage.nodes) do
if node.category == 'display' and node.adapter and node.adapter.clear then
node.adapter.setBackgroundColor(colors.black)
node.adapter.clear()
end
end