Add MenuBarComponent::getCurrentPopupIndex()

Discussion is here:

created pull request here:

It’s a single-liner addition, so I don’t see why it would be a problem! :smiley: