From 1075d66122d55d8a353c224de4bf353d0a18177c Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 4 Nov 2023 12:48:06 -0400 Subject: [PATCH] graphics bugfix with disabled input fields --- graphics/core.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/core.lua b/graphics/core.lua index abafb44..437f66f 100644 --- a/graphics/core.lua +++ b/graphics/core.lua @@ -7,7 +7,7 @@ local flasher = require("graphics.flasher") local core = {} -core.version = "2.0.6" +core.version = "2.0.7" core.flasher = flasher core.events = events @@ -173,7 +173,7 @@ function core.new_ifield(e, max_len, fg_bg, dis_fg_bg) if e.enabled then e.w_set_bkg(fg_bg.bkg) 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_fgd(dis_fg_bg.fgd) end