milo config backups

This commit is contained in:
kepler155c@gmail.com
2019-03-12 10:20:02 -04:00
parent 7ac10948df
commit d8e0a669af
2 changed files with 8 additions and 5 deletions

View File

@@ -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',