#219 properly close out GUI on error on pocket and coordinator

This commit is contained in:
Mikayla
2023-04-21 18:53:28 +00:00
parent 706fb5ea74
commit e1da8b59d3
12 changed files with 89 additions and 112 deletions

View File

@@ -33,7 +33,7 @@ local UNIT_TYPE_LABELS = {
-- create new main view
---@param panel table main displaybox
---@param panel graphics_element main displaybox
---@param units table unit list
local function init(panel, units)
TextBox{parent=panel,y=1,text="RTU GATEWAY",alignment=TEXT_ALIGN.CENTER,height=1,fg_bg=style.header}
@@ -116,8 +116,6 @@ local function init(panel, units)
local for_unit = util.trinary(unit.reactor == 0, "\x1a FACIL ", "\x1a UNIT " .. unit.reactor)
TextBox{parent=unit_hw_statuses,y=i,x=19,text=for_unit,height=1,fg_bg=cpair(colors.lightGray,colors.ivory)}
end
return panel
end
return init