Fixed bool initialization of MyWindow.