mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
graphics bugfix with disabled input fields
This commit is contained in:
parent
d477b33774
commit
1075d66122
@ -7,7 +7,7 @@ local flasher = require("graphics.flasher")
|
|||||||
|
|
||||||
local core = {}
|
local core = {}
|
||||||
|
|
||||||
core.version = "2.0.6"
|
core.version = "2.0.7"
|
||||||
|
|
||||||
core.flasher = flasher
|
core.flasher = flasher
|
||||||
core.events = events
|
core.events = events
|
||||||
@ -173,7 +173,7 @@ function core.new_ifield(e, max_len, fg_bg, dis_fg_bg)
|
|||||||
if e.enabled then
|
if e.enabled then
|
||||||
e.w_set_bkg(fg_bg.bkg)
|
e.w_set_bkg(fg_bg.bkg)
|
||||||
e.w_set_fgd(fg_bg.fgd)
|
e.w_set_fgd(fg_bg.fgd)
|
||||||
else
|
elseif dis_fg_bg ~= nil then
|
||||||
e.w_set_bkg(dis_fg_bg.bkg)
|
e.w_set_bkg(dis_fg_bg.bkg)
|
||||||
e.w_set_fgd(dis_fg_bg.fgd)
|
e.w_set_fgd(dis_fg_bg.fgd)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user