Fix storageGen.lua, move it out of apps #59
@@ -6,6 +6,7 @@ fs.delete('packages/milo/Milo.lua')
|
|||||||
fs.delete('packages/milo/plugins/listing.lua')
|
fs.delete('packages/milo/plugins/listing.lua')
|
||||||
fs.delete('packages/milo/apis/milo.lua')
|
fs.delete('packages/milo/apis/milo.lua')
|
||||||
fs.delete('packages/milo/plugins/manipulator.lua')
|
fs.delete('packages/milo/plugins/manipulator.lua')
|
||||||
|
fs.delete('packages/milo/apps')
|
||||||
|
|
||||||
if peripheral.find('workbench') and shell.openForegroundTab then
|
if peripheral.find('workbench') and shell.openForegroundTab then
|
||||||
shell.openForegroundTab('MiloLocal')
|
shell.openForegroundTab('MiloLocal')
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ end
|
|||||||
function page:saveConfig(path)
|
function page:saveConfig(path)
|
||||||
local config = Util.readTable(path) or {}
|
local config = Util.readTable(path) or {}
|
||||||
Util.each(self.storages, function(dev, name)
|
Util.each(self.storages, function(dev, name)
|
||||||
if self.typeGrid.values[dev.type] and self.typeGrid.values[dev.type].checked and not config[name] then
|
if self.typeGrid.values[dev.type] and self.typeGrid.values[dev.type].checked and (not config[name] or config[name].mtype == 'ignore') then
|
||||||
config[name] = {
|
config[name] = {
|
||||||
name = name,
|
name = name,
|
||||||
category = 'storage',
|
category = 'storage',
|
||||||
Reference in New Issue
Block a user