marta-file-manager / marta-issues

An issue tracker for Marta File Manager.
https://marta.yanex.org/
359 stars 0 forks source link

marta.globalContext.get("behavior") crashes #976

Open eugenesvk opened 1 year ago

eugenesvk commented 1 year ago
marta.expose()
marta.plugin({id="crash", name="crash", apiVersion="2.1"})

marta.action({id="crash", name="crash",
apply = function(ctxA)
  local crashes     = marta.globalContext.get("behavior")
  -- local works    = marta.globalContext.get("behavior","theme")
end})

Don't think the getter should ever crash (find it a bit strange that to get the theme I need to type it twice works["theme"], I'd expect to get the string value right away and only get a table if it's a nested table in the configs)