          self.statusbar.stop()
          self.statusbar.message.set(message)
          self.tk_vars["display"].set(None)
          get_images().delete_preview()
          preview_trigger().clear()
          self.command = None
          logger.debug("Terminated Faceswap processes")
          print("Process exited.")
  
  
 
</s> remove         preview_trigger().clear()
 </s> add         preview_trigger().clear(trigger_type=None) </s> remove         preview_trigger().clear()
 </s> add         preview_trigger().clear(trigger_type=None) </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         self._gui_preview_trigger = os.path.join(os.path.realpath(os.path.dirname(sys.argv[0])),
                                                 "lib", "gui", ".cache", ".preview_trigger")
 </s> add         gui_cache = os.path.join(
            os.path.realpath(os.path.dirname(sys.argv[0])), "lib", "gui", ".cache")
        self._gui_triggers = dict(update=os.path.join(gui_cache, ".preview_trigger"),
                                  mask_toggle=os.path.join(gui_cache, ".preview_mask_toggle"))
        preview_trigger().clear(trigger_type=None)
          self.statusbar.stop()
          self.statusbar.message.set(message)
          self.tk_vars["display"].set(None)
          get_images().delete_preview()
        preview_trigger().clear(trigger_type=None)
          self.command = None
          logger.debug("Terminated Faceswap processes")
          print("Process exited.")
  
  
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/wrapper.py