This plugin works well on my Xubuntu with an
appimage I made that adds python2 before starting Gimp. (Python2 was dropped by Ubuntu and other Linux distros)
These are handy actions that has 'Add Alpha' but no 'Remove Alpha'.
I can do that with Tim Trans 'Run code on visible layers'
The command in 'Code to Run' is
if layer.has_alpha: pdb.gimp_layer_flatten(layer)
Maybe you could figure out how to use that line in your plugin? I have Tims plugin that starts with that code so I don't put it in every time.
Congratulations Pocholo this is a very nice plugin
