Main Window is always maximized, even when I set a custom size

I have set a custom size for the Main Window, and checked “Allow user to resize” and “Enable Maximize Window”

But the window always launches full screen.
How to I make the app launch at the custom size that I set?

I closed the program and opened it several times. Then recompiled my app several times. The problem seems to be solved – the app screen now opens at the proper size.