I just noticed that when I close the main window of my app by hitting the red close button, it closes, but if I go to the menubar and click anywhere, without even selecting any menuitem, it's triggering a new main window. I just can't seem to figure out how this is even possible. I have a New Window menuitem, but I don't even get to select it before the window opens. ??? Here is a quick video.
I've been trying to comment out the code in some of the events such as open and close and some of the methods the window uses, but I can't seem to track down what might be causing this. Is there even an event that could trigger by clicking on the menubar?