          super().__init__(*args, **kwargs)
  
      def add_options(self):
          """ Add the additional options """
          self.add_option_refresh()
          super().add_options()
  
      def add_option_refresh(self):
          """ Add refresh button to refresh preview immediately """
          logger.debug("Adding refresh option")
 
</s> remove     def add_option_refresh(self):
 </s> add     def _add_option_refresh(self): </s> remove                                 command=preview_trigger().set)
 </s> add                                 command=lambda x="update": preview_trigger().set(x)) </s> remove     """ Trigger to indicate to underlying Faceswap process that the preview image should
 </s> add     """ Triggers to indicate to underlying Faceswap process that the preview image should </s> remove             logger.debug("Set preview update trigger: %s", self._trigger_file)
 </s> add             logger.debug("Set preview trigger: %s", trigger)

    def clear(self, trigger_type=None):
        """ Remove the trigger file from the cache folder.
        self._add_option_refresh()
        self._add_option_mask_toggle()
          super().__init__(*args, **kwargs)
  
      def add_options(self):
          """ Add the additional options """
        self._add_option_refresh()
        self._add_option_mask_toggle()
          super().add_options()
  
      def add_option_refresh(self):
          """ Add refresh button to refresh preview immediately """
          logger.debug("Adding refresh option")
keep keep keep keep replace keep keep keep keep keep
 Updates
  - Change shortcut key to M
  - Slight optimizations
  - GUI support for mask toggling 
lib/gui/display_command.py