Temporarily disable Bluetooth connect button when connection status switches

Occasionally it takes longer than usual for my BT earbuds to autoconnect, so I go to the system tray menu to connect manually. Often they connect automatically right as I’m about to click the “Connect” button and it switches to “Disconnect” right under me, forcing me to wait a while before I can connect again. It would be nice if the button was inactive for a second when the connection status changes to prevent that kind of thing.