diff --git a/reactor-plc/configure.lua b/reactor-plc/configure.lua index 43db0a9..482a629 100644 --- a/reactor-plc/configure.lua +++ b/reactor-plc/configure.lua @@ -729,7 +729,7 @@ local function config_view(display) local alternate = false local inner_width = setting_list.get_width() - 1 - tool_ctl.show_key_btn.enable() + if cfg.AuthKey then tool_ctl.show_key_btn.enable() else tool_ctl.show_key_btn.disable() end tool_ctl.auth_key_value = cfg.AuthKey or "" -- to show auth key for i = 1, #fields do @@ -740,7 +740,7 @@ local function config_view(display) local raw = cfg[f[1]] local val = util.strval(raw) - if f[1] == "AuthKey" then val = string.rep("*", string.len(val)) + if f[1] == "AuthKey" and raw then val = string.rep("*", string.len(val)) elseif f[1] == "LogMode" then val = util.trinary(raw == log.MODE.APPEND, "append", "replace") elseif f[1] == "EmerCoolColor" and raw ~= nil then val = rsio.color_name(raw) elseif f[1] == "FrontPanelTheme" then diff --git a/reactor-plc/startup.lua b/reactor-plc/startup.lua index 09994cb..cf5fcbe 100644 --- a/reactor-plc/startup.lua +++ b/reactor-plc/startup.lua @@ -18,7 +18,7 @@ local plc = require("reactor-plc.plc") local renderer = require("reactor-plc.renderer") local threads = require("reactor-plc.threads") -local R_PLC_VERSION = "v1.7.7" +local R_PLC_VERSION = "v1.7.8" local println = util.println local println_ts = util.println_ts