milo config backups
This commit is contained in:
@@ -4,6 +4,7 @@ local Milo = require('milo')
|
||||
local UI = require('ui')
|
||||
|
||||
local colors = _G.colors
|
||||
local device = _G.device
|
||||
local fs = _G.fs
|
||||
local os = _G.os
|
||||
|
||||
@@ -30,7 +31,8 @@ local wizardPage = UI.WizardPage {
|
||||
}
|
||||
|
||||
function wizardPage:isValidType(node)
|
||||
return node.adapter and node.adapter.type == 'drive' and {
|
||||
local m = device[node.name]
|
||||
return m and m.type == 'drive' and {
|
||||
name = 'Backup Drive',
|
||||
value = 'backup',
|
||||
category = 'custom',
|
||||
|
||||
@@ -2,9 +2,9 @@ local Milo = require('milo')
|
||||
local Sound = require('sound')
|
||||
local UI = require('ui')
|
||||
|
||||
local colors = _G.colors
|
||||
local context = Milo:getContext()
|
||||
local peripheral = _G.peripheral
|
||||
local colors = _G.colors
|
||||
local device = _G.device
|
||||
local context = Milo:getContext()
|
||||
|
||||
local speakerNode = context.storage:getSingleNode('speaker')
|
||||
if speakerNode then
|
||||
@@ -50,7 +50,8 @@ function wizardPage:validate()
|
||||
end
|
||||
|
||||
function wizardPage:isValidType(node)
|
||||
return node.adapter and node.adapter.type == 'speaker' and {
|
||||
local m = device[node.name]
|
||||
return m and m.type == 'speaker' and {
|
||||
name = 'Speaker',
|
||||
value = 'speaker',
|
||||
category = 'custom',
|
||||
|
||||
Reference in New Issue
Block a user