Cobra ring with gadgets

quick dumb question about Cobra ring, what about if you purge/interrupt with a gadget ?
The description says you get energy for the weapon which triggered the effect, does it simply get wasted if you use a gadget ?

You get extra energy for your currently active weapon.

Thanks, that’s what I thought but needed a confirm