                  text=_("Preview updates at every model save. Click to refresh now."),
                  wrap_length=200)
          logger.debug("Added refresh option")
  
      def display_item_set(self):
          """ Load the latest preview if available """
          logger.trace("Loading latest preview")
          if not self.update_preview.get():
              logger.trace("Preview not updated")
 
</s> remove                                 command=preview_trigger().set)
 </s> add                                 command=lambda x="update": preview_trigger().set(x)) </s> remove         self.add_option_refresh()
 </s> add         self._add_option_refresh()
        self._add_option_mask_toggle() </s> remove     def add_option_refresh(self):
 </s> add     def _add_option_refresh(self): </s> remove     """ Set the global preview trigger if it has not always been set and return.
 </s> add     """ Set the global preview trigger if it has not already been set and return. </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.
    def _add_option_mask_toggle(self):
        """ Add button to toggle mask display on and off """
        logger.debug("Adding mask toggle option")
        btntoggle = ttk.Button(self.optsframe,
                               image=get_images().icons["mask2"],
                               command=lambda x="mask_toggle": preview_trigger().set(x))
        btntoggle.pack(padx=2, side=tk.RIGHT)
        Tooltip(btntoggle,
                text=_("Click to toggle mask overlay on and off."),
                wrap_length=200)
        logger.debug("Added mask toggle option")

                  text=_("Preview updates at every model save. Click to refresh now."),
                  wrap_length=200)
          logger.debug("Added refresh option")
  
    def _add_option_mask_toggle(self):
        """ Add button to toggle mask display on and off """
        logger.debug("Adding mask toggle option")
        btntoggle = ttk.Button(self.optsframe,
                               image=get_images().icons["mask2"],
                               command=lambda x="mask_toggle": preview_trigger().set(x))
        btntoggle.pack(padx=2, side=tk.RIGHT)
        Tooltip(btntoggle,
                text=_("Click to toggle mask overlay on and off."),
                wrap_length=200)
        logger.debug("Added mask toggle option")

      def display_item_set(self):
          """ Load the latest preview if available """
          logger.trace("Loading latest preview")
          if not self.update_preview.get():
              logger.trace("Preview not updated")
keep keep keep add keep keep keep keep keep
 Updates
  - Change shortcut key to M
  - Slight optimizations
  - GUI support for mask toggling 
lib/gui/display_command.py