Dissabling the pause button when no project is opened