I'm having some trouble dismissing the QToolBar DropDown Menu.

I uploaded a little gif to help explain.
https://ibb.co/8X8VCS5

I have 2 QToolButtons. One has a dope down menu, the other is just a clicker.
The pulldown, when clicked on, will search for any Cameras and populate them in the menu. If it isn't clicked on, it doesn't update the menu. It just has 'default'.
The other Qtoolbutton is the little camera icon next to it. In the attached gif link, it's the button that turns red. This button will only activate if a camera is selected from the pull-down. So i need to trigger the menu, and have it load all the cameras, then select a camera, then push the camera icon.

What it's doing:

I am programmatically clicking/activating these two buttons with a third button called 'Active Viewer Setup.'
using the code below, i open the menu, forcing it to populate. (Camera01 gets added)
Qt Code:
  1. cameraSelectionButton.showMenu()
To copy to clipboard, switch view to plain text mode 

Then I select Camera01 from the menu if it matches my text.
Qt Code:
  1. [camera.trigger() for camera in cameraSelectionButton.menu().actions() if camera.text() == 'Camera01']
To copy to clipboard, switch view to plain text mode 

Then the Camera Icon button gets clicked to activate. (turns red)
Qt Code:
  1. cameraActivateButton.click()
To copy to clipboard, switch view to plain text mode 

The Problem:

The Menu doesn't close/dismiss. If you take a look at the gif, You'll see everything gets clicked, and activates, but it doesn't show because the menu is still open. I have to do a second click, which closes the menu and then things update. When I omit the code for showMenu, and click it myself using the mouse, everything works. This is how I know its the menu not closing that is causing the issue.

Is there a way to close this menu ? Any advice/alternative ways of doing this?

Thanks!

Nick