          with self._lock:
              retval = self._refresh
              if retval:
                  logger.debug("Sending should refresh")
                  self._refresh = False
              return retval
  
      def should_save(self) -> bool:
          """ Check whether a save request has been made. If ``True`` is returned then :attr:`_save`
          is set back to ``False``
 
</s> remove                 self._toggle_mask = False
 </s> add                 self._triggers["toggle_mask"] = False </s> remove                 self._save = False
 </s> add                 self._triggers["save"] = False </s> remove         returned then resets :attr:`_refresh` back to ``False``
 </s> add         returned then resets the refresh trigger back to ``False`` </s> remove         then resets :attr:`_toggle_mask` back to ``False``
 </s> add         then resets mask toggle back to ``False`` </s> remove             retval = self._save
 </s> add             retval = self._triggers["save"]
                self._triggers["refresh"] = False
          with self._lock:
              retval = self._refresh
              if retval:
                  logger.debug("Sending should refresh")
                self._triggers["refresh"] = False
              return retval
  
      def should_save(self) -> bool:
          """ Check whether a save request has been made. If ``True`` is returned then :attr:`_save`
          is set back to ``False``
keep keep keep keep replace keep keep keep keep keep
 bugfix: Update preview screen in GUI 
scripts/train.py