multiMiner + cloud catcher

This commit is contained in:
kepler155c@gmail.com
2019-01-13 13:26:19 -05:00
parent 91d434f93d
commit dee2b05cfb
7 changed files with 236 additions and 21 deletions

View File

@@ -169,15 +169,17 @@ Event.on({ 'storage_offline', 'storage_online' }, function()
end
end)
Event.on('terminate', function()
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
end)
os.queueEvent(
context.storage:isOnline() and 'storage_online' or 'storage_offline',
context.storage:isOnline())
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