multiMiner + cloud catcher
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -10,7 +10,7 @@ local wizardPage = UI.Window {
|
||||
index = 2,
|
||||
backgroundColor = colors.cyan,
|
||||
form = UI.Form {
|
||||
x = 2, ex = -2, y = 2, ey = -2,
|
||||
x = 2, ex = -2, y = 1, ey = -2,
|
||||
manualControls = true,
|
||||
[1] = UI.TextEntry {
|
||||
formLabel = 'Domain', formKey = 'domain',
|
||||
@@ -33,11 +33,6 @@ local wizardPage = UI.Window {
|
||||
shadowText = "xxxx's shop",
|
||||
required = false,
|
||||
},
|
||||
warning = UI.Text {
|
||||
x = 2, y = -1,
|
||||
textColor = colors.yellow,
|
||||
value = 'swshop Package must be installed',
|
||||
},
|
||||
[4] = UI.Chooser {
|
||||
width = 9,
|
||||
formLabel = 'Font Size', formKey = 'textScale',
|
||||
@@ -48,6 +43,11 @@ local wizardPage = UI.Window {
|
||||
},
|
||||
help = 'Adjust text scaling',
|
||||
},
|
||||
warning = UI.Text {
|
||||
x = 2, y = -1,
|
||||
textColor = colors.orange,
|
||||
value = 'Package swshop must be installed',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user