Add new layer detection to keep colors mapped correctly.

This commit is contained in:
Anna Rose Wiggins 2024-07-29 23:22:57 -04:00
parent ec8e131829
commit 0ed105d355
5 changed files with 78 additions and 49 deletions

View file

@ -1,6 +1,7 @@
extKey = "annabunches/abase" -- this must come before we require 'abase-commands'
local cmd = require "abase-commands"
local listeners = require "abase-listeners"
function init(plugin)
plugin:newCommand{
@ -76,4 +77,13 @@ function init(plugin)
return app.layer.isGroup
end
}
app.events:on(
"aftercommand",
function(ev)
if (ev.name == "NewLayer") then
listeners.RecolorLayers()
end
end
)
end