                  self._triggers["save"] = False
          return retval
  
      def should_quit(self) -> bool:
          """ Check whether an exit request has been made.
  
          Returns
          -------
          bool
              ``True`` if an exit request has been made otherwise ``False``. """
 
</s> remove         Returns
        -------
        bool
            ``True`` if an exit request has been made otherwise ``False``. """
        with self._lock:
            retval = self._triggers["quit"]
 </s> add         Raises
        ------
        Error
            Re-raises any error within the preview thread
         """
        if self._thread is None:
            return False

        self._thread.check_and_raise_error()

        retval = self._triggers["quit"].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
        """ bool: Check whether an exit request has been made. ``True`` if an exit request has
        been made otherwise ``False``.
                  self._triggers["save"] = False
          return retval
  
      def should_quit(self) -> bool:
        """ bool: Check whether an exit request has been made. ``True`` if an exit request has
        been made otherwise ``False``.
  
          Returns
          -------
          bool
              ``True`` if an exit request has been made otherwise ``False``. """
keep keep keep keep replace keep keep keep keep keep
 Training - Use custom preview pop-out 
scripts/train.py