                          self._save_now = True
  
                  # GUI Preview trigger update monitor
                  if self._args.redirect_gui:
                      if not preview_trigger_set and os.path.isfile(self._gui_preview_trigger):
                          print("\n")
                          logger.info("Refresh preview requested")
                          self._refresh_preview = True
                          preview_trigger_set = True
  
 
</s> remove                     logger.info("Toggle mask display requested")
 </s> add                     logger.verbose("Toggle mask display requested") </s> remove                 if is_preview and cv_key == ord("t"):
 </s> add                 if is_preview and cv_key == ord("m"): </s> remove                     self._refresh_preview = True
 </s> add  </s> remove                 if self._args.redirect_gui:
 </s> add                 if self._args.redirect_gui:  # Remove any gui trigger files following an update
                    if os.path.isfile(self._gui_triggers["mask_toggle"]):
                        self._toggle_preview_mask = True

                    if not preview_trigger_set and os.path.isfile(self._gui_triggers["update"]):
                          self._save_now = True
  
                  # GUI Preview trigger update monitor
                  if self._args.redirect_gui:
                    if os.path.isfile(self._gui_triggers["mask_toggle"]):
                        self._toggle_preview_mask = True

                    if not preview_trigger_set and os.path.isfile(self._gui_triggers["update"]):
                          print("\n")
                          logger.info("Refresh preview requested")
                          self._refresh_preview = True
                          preview_trigger_set = True
  
keep keep keep keep replace keep keep keep keep keep
 Updates
  - Change shortcut key to M
  - Slight optimizations
  - GUI support for mask toggling 
scripts/train.py