  
          if self._handletype.lower() in (
                  "open", "save", "filename", "filename_multi", "savefilename"):
              kwargs["filetypes"] = self._filetypes[filetype]
              if self._defaults.get(filetype, None):
                  kwargs['defaultextension'] = self._defaults[filetype]
          if self._handletype.lower() == "save":
              kwargs["mode"] = "w"
          if self._handletype.lower() == "open":
              kwargs["mode"] = "r"
 
</s> remove         # Update centering if it has been changed by legacy facesets in TrainingAlignments
 </s> add         # Update centering if it has been changed by legacy face sets in TrainingAlignments </s> remove             ``True`` if images were succesfully loaded to cache otherwise ``False``
 </s> add             ``True`` if images were successfully loaded to cache otherwise ``False`` </s> remove         defaults = {key: val[0][1].replace("*", "")
 </s> add         defaults = {key: next(ext for ext in val[0][1].split(" ")).replace("*", "") </s> remove         Used for updating legacy facesets to contain the meta information within the image header
 </s> add         Used for updating legacy face sets to contain the meta information within the image header
            if self._defaults.get(filetype):
  
          if self._handletype.lower() in (
                  "open", "save", "filename", "filename_multi", "savefilename"):
              kwargs["filetypes"] = self._filetypes[filetype]
            if self._defaults.get(filetype):
                  kwargs['defaultextension'] = self._defaults[filetype]
          if self._handletype.lower() == "save":
              kwargs["mode"] = "w"
          if self._handletype.lower() == "open":
              kwargs["mode"] = "r"
keep keep keep keep replace keep keep keep keep keep
 Bugfixes:
  - plugins.train.trainer._base - Don't output error message for sides which have valid masks
  - lib.gui.menu - Fix project file saving extension on Linux 
lib/gui/utils.py