              self._filename = self._project_filename
          elif self._filename.endswith(".fsw"):
              self._filename = None
  
          self._add_to_recent(command)
          self._add_task(command)
          if is_legacy:
              self.save()
  
          logger.debug("Loaded task config: (command: '%s', filename: '%s')", command, filename)
 
</s> remove         command = self._active_tab if current_tab else self._get_lone_task()
 </s> add         command = self._active_tab if current_tab else self._stored_tab_name
        command = self._get_lone_task() if command is None else command
              self._filename = self._project_filename
          elif self._filename.endswith(".fsw"):
              self._filename = None
  

          self._add_task(command)
          if is_legacy:
              self.save()
  
          logger.debug("Loaded task config: (command: '%s', filename: '%s')", command, filename)
keep keep keep keep replace keep keep keep keep keep
 bugfix: lib.gui - Correctly handle tasks loaded from the file/recent menus 
lib/gui/project.py