Bug? Encrypted flash drive unlock triggering Mac Unlock macro

I have a macro that uses the unlock trigger to open Calculator.

I also have an encrypted flash drive that was encrypted with the standard built-in Disk Utility app. But when I plug the flash drive in and unlock it, and then do something else (like switch the current space, or even just click the desktop), it opens the Calculator.

Even just clicking back and forth between the password dialog and the desktop repeatedly triggers the macro.

Interestingly, it does not happen when unlocking an encrypted dmg, only an encrypted drive.

To me, I can see no reason other than that this is just a bug. Has anyone else encountered such a thing, or can anyone reproduce?

Thanks in advance,
Riley

Open Calc on Mac Unlock.kmmacros (1.8 KB)