          return retval
  
      def request_refresh(self) -> None:
          """ Handle a GUI trigger or a training thread trigger (after a mask toggle) request to set
          the :attr:`_refresh` to ``True`` to request a refresh on the next pass of the
          training loop. """
          with self._lock:
              self._refresh = True
  
      def request_mask_toggle(self) -> None:
 
</s> remove             self._refresh = True
 </s> add             self._triggers["refresh"] = True </s> remove         """ Handle a GUI trigger request to set the Set the :attr:`_toggle_mask` to ``True`` to
 </s> add         """ Handle a GUI trigger request to set the mask toggle to ``True`` to </s> remove             self._toggle_mask = True
 </s> add             self._triggers["toggle_mask"] = True </s> remove                 self._refresh = False
 </s> add                 self._triggers["refresh"] = False </s> remove         returned then resets :attr:`_refresh` back to ``False``
 </s> add         returned then resets the refresh trigger back to ``False``
        the refresh trigger to ``True`` to request a refresh on the next pass of the
          return retval
  
      def request_refresh(self) -> None:
          """ Handle a GUI trigger or a training thread trigger (after a mask toggle) request to set
        the refresh trigger to ``True`` to request a refresh on the next pass of the
          training loop. """
          with self._lock:
              self._refresh = True
  
      def request_mask_toggle(self) -> None:
keep keep keep keep replace keep keep keep keep keep
 bugfix: Update preview screen in GUI 
scripts/train.py