                          continue
                      if opt_value not in opt["choices"]:
                          default = str(opt["default"])
                          logger.warning("'%s' is not a valid config choice for '%s': '%s'. "
                                         "Defaulting to: '%s'", opt_value, section, item, default)
                          self.config.set(section, item, default)
          logger.debug("Checked config choices")
  
      def check_config_change(self):
          """ Check whether new default items have been added or removed
              from the config file compared to saved version """
 
</s> remove     def check_config_change(self):
        """ Check whether new default items have been added or removed
            from the config file compared to saved version """
 </s> add     def _check_config_change(self) -> bool:
        """ Check whether new default items have been added or removed from the config file
        compared to saved version

        Returns
        -------
        bool
            ``True`` if a config option has been added or removed
        """ </s> remove                     if opt_value not in opt["choices"]:
                        default = str(opt["default"])
 </s> add                     if opt_value not in opt.choices:
                        default = str(opt.default) </s> remove                                                            for choice in opt["choices"]):
 </s> add                                                            for choice in opt.choices): </s> remove                     opt_value = self.config.get(section, item)
 </s> add                     if opt.choices == "colorchooser":
                        continue
                    opt_value = self.config.get(section_name, item) </s> remove                                        "setting to: '%s'", invalid, section, item, valid)
                        self.config.set(section, item, valid)
 </s> add                                        "setting to: '%s'", invalid, section_name, item, valid)
                        self.config.set(section_name, item, valid)
                                       "Defaulting to: '%s'",
                                       opt_value, section_name, item, default)
                        self.config.set(section_name, item, default)
                          continue
                      if opt_value not in opt["choices"]:
                          default = str(opt["default"])
                          logger.warning("'%s' is not a valid config choice for '%s': '%s'. "
                                       "Defaulting to: '%s'",
                                       opt_value, section_name, item, default)
                        self.config.set(section_name, item, default)
                                       "Defaulting to: '%s'",
                                       opt_value, section_name, item, default)
                        self.config.set(section_name, item, default)
          logger.debug("Checked config choices")
  
      def check_config_change(self):
          """ Check whether new default items have been added or removed
              from the config file compared to saved version """
keep keep keep keep replace replace keep keep keep keep keep
 Preview - Allow mask color/opacity configuration
  - typing: lib.config
  - docs: lib.config
  - bugfix: popup_configure - keep assets on top 
lib/config.py