If no file is loaded the do not export the window