Selecting an existing plugin twice stops me from selecting it again when publishing

When I went to overwrite an existing plugin I made (by using Publish as Plugin in the context menu), I accidentally clicked twice on the plugin I wanted to overwrite. When I clicked it again, Studio didn’t allow me to submit the plugin, even though it looked like it was already selected.

Studio allowed me to submit the plugin when I exited the menu and tried publishing again, but this time without clicking twice.

What I see when I select the plugin once

What I see when I select the plugin twice

Steps to reproduce:

  1. Right-click a script.
  2. Click Publish as Plugin.
  3. Click Save as a new asset...
  4. Select the plugin you want to overwrite.
  5. Select it again.

The reproduction process worked 100% of the time for me.