Hide main window when building, and display dialog when build completes.