This commit is contained in:
kepler155c
2018-10-26 23:08:44 -04:00
parent 87da95ca05
commit d227d6ebb7
5 changed files with 94 additions and 90 deletions

View File

@@ -67,6 +67,7 @@ local Util = require('util')
local fs = _G.fs
local multishell = _ENV.multishell
local os = _G.os
local shell = _ENV.shell
if multishell then
@@ -113,7 +114,6 @@ end)
Milo:init(context)
context.storage:initStorage()
context.storage:initTrashcan()
local function loadDirectory(dir)
for _, file in pairs(fs.list(dir)) do
@@ -157,4 +157,8 @@ Event.onInterval(5, function()
end
end)
os.queueEvent(
context.storage:isOnline() and 'storage_online' or 'storage_offline',
context.storage:isOnline())
UI:pullEvents()