code: def update_project_actions(self):
          
          if self.recent_projects:
              self.clear_recent_projects_action.setEnabled(True)
          else:
              self.clear_recent_projects_action.setEnabled(False)
  
          active = bool(self.get_active_project_path())
          self.close_project_action.setEnabled(active)
          self.delete_project_action.setEnabled(active)
          self.edit_project_preferences_action.setEnabled(active)
docs: Update actions of the Projects menu