@jsulm @mrjj @ig Thanks for all the help.
I was able to fix the inheritance issue by creating a new FileMenu instance in the main window.