code: def set_open_filenames(self):
          
          if self.projects is not None:
              if not self.projects.get_active_project():
                  filenames = self.get_open_filenames()
                  self.set_option('filenames', filenames)
docs: Set the recent opened files on editor based on active project.
  
          If no project is active, then editor filenames are saved, otherwise
          the opened filenames are stored in the project config info.