This commit is contained in:
luk3yx 2019-03-13 18:22:43 +13:00
parent f108624989
commit 916dba380f
2 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,7 @@ end
local function get_disable_confirm_buttonhandler(this, fields)
if fields.pwd_confirm_disable then
-- Don't load pwmgr later
core.settings:set_bool("pwmgr.enable", false)
core.settings:set_bool("enable_pwmgr", false)
core.settings:write()
-- Delete the "pwmgr" global variable

View File

@ -331,7 +331,8 @@ local function main_button_handler(tabview, fields, name, tabdata)
core.settings:set("address", fields.te_address)
core.settings:set("remote_port", fields.te_port)
if core.settings:get_bool("enable_pwmgr") then
local enable_pwmgr = core.settings:get_bool("enable_pwmgr")
if enable_pwmgr or enable_pwmgr == nil then
if not rawget(_G, "pwmgr") then
dofile(core.get_mainmenu_path() .. DIR_DELIM .. "pwmgr.lua")
end