Input language switcher

I finally got pissed by the MacOS input source switching, which is notoriously sluggish and they haven’t fixed it since maybe a decade. So I disabled the system shortcut and made my own using BTT. It does work great, and I would put this in “Preset Sharing”, however I have a small problem and I don’t know if this is a BTT bug or I’m doing something wrong.

I added flags as menubar items to show the currently selected language. In the beginning they show as they should, then after a few switches one of the flags disappears, and it’s only the other or none. Sometimes the missing flag starts to appear only while pressing Cmd, although its configuration is “Show always (don’t care …”, and the other disappears while pressing Cmd. Strange behavior.

language-switcher.bttpreset (11.7 KB)
(To test it you must have U.S. and “Bulgarian - QWERTY” layouts)

I made a demonstrator trigger that doesn’t need real language input sources to work. The problem is still as described.

demonstrator.bttpreset (11.3 KB)

The English flag is enabled, but is not seen in the menubar. This is on a clean MacOS for testing.