              self._triggers["refresh"].clear()
          return retval
  
      def should_save(self) -> bool:
          """ bool: Check whether a save request has been made. If ``True`` is returned then save
          trigger is set back to ``False`` """
          if not self._active:
              return False
          retval = self._triggers["save"].is_set()
 
</s> remove         """ Check whether a save request has been made. If ``True`` is returned then :attr:`_save`
        is set back to ``False``

        Returns
        -------
        bool
            ``True`` if a save has been requested otherwise ``False``. """
        with self._lock:
            retval = self._triggers["save"]
            if retval:
                logger.debug("Sending should save")
                self._triggers["save"] = False
 </s> add         """ bool: Check whether a save request has been made. If ``True`` is returned then save
        trigger is set back to ``False`` """
        if not self._active:
            return False
        retval = self._triggers["save"].is_set()
        if retval:
            logger.debug("Sending should save")
            self._triggers["save"].clear() </s> remove         """ Check whether the preview should be updated and return the value. If ``True`` is
        returned then resets the refresh trigger back to ``False``

        Returns
        -------
        bool
            ``True`` if the preview should be refreshed otherwise ``False``. """
        with self._lock:
            retval = self._triggers["refresh"]
            if retval:
                logger.debug("Sending should refresh")
                self._triggers["refresh"] = False
            return retval
 </s> add         """ bool: Check whether the preview should be updated and return the value. If ``True`` is
        returned then resets the refresh trigger back to ``False`` """
        if not self._active:
            return False
        retval = self._triggers["refresh"].is_set()
        if retval:
            logger.debug("Sending should refresh")
            self._triggers["refresh"].clear()
        return retval </s> remove         """ Check whether the mask should be toggled and return the value. If ``True`` is returned
        then resets mask toggle back to ``False``

        Returns
        -------
        bool
            ``True`` if the mask should be toggled otherwise ``False``. """
        with self._lock:
            retval = self._triggers["toggle_mask"]
            if retval:
                logger.debug("Sending toggle mask")
                self._triggers["toggle_mask"] = False
 </s> add         """ bool: Check whether the mask should be toggled and return the value. If ``True`` is
        returned then resets mask toggle back to ``False`` """
        if not self._active:
            return False
        retval = self._triggers["toggle_mask"].is_set()
        if retval:
            logger.debug("Sending toggle mask")
            self._triggers["toggle_mask"].clear() </s> remove         """ Check whether an exit request has been made.
 </s> add         """ bool: Check whether an exit request has been made. ``True`` if an exit request has
        been made otherwise ``False``.
    @property
              self._triggers["refresh"].clear()
          return retval
  
    @property
      def should_save(self) -> bool:
          """ bool: Check whether a save request has been made. If ``True`` is returned then save
          trigger is set back to ``False`` """
          if not self._active:
              return False
          retval = self._triggers["save"].is_set()
keep keep add keep keep keep keep keep keep
 Training - Use custom preview pop-out 
scripts/train.py