          self.config.optionxform = str
          self.save_config()
          logger.debug("Updated config")
  
      def check_config_choices(self):
          """ Check that config items are valid choices """
          logger.debug("Checking config choices")
          for section, items in self.defaults.items():
              for item, opt in items.items():
                  if item == "helptext" or not opt["choices"]:
 
</s> remove         for section, items in self.defaults.items():
            for item, opt in items.items():
                if item == "helptext" or not opt["choices"]:
 </s> add         for section_name, section in self.defaults.items():
            for item, opt in section.items.items():
                if not opt.choices: </s> remove         self.config.optionxform = str
 </s> add         self.config.optionxform = str  # type:ignore </s> remove                 if opt["type"] == list:  # Multi-select items
                    opt_value = self._parse_list(section, item)
                    if not opt_value:  # No option selected
 </s> add                 if opt.datatype == list:  # Multi-select items
                    opt_values = self._parse_list(section_name, item)
                    if not opt_values:  # No option selected </s> remove         for section, items in self.defaults.items():
            self.insert_config_section(section, items["helptext"], new_config)
            for item, opt in items.items():
                if item == "helptext":
                    continue
                if section not in self.config.sections():
                    logger.debug("Adding new config section: '%s'", section)
                    opt_value = opt["default"]
 </s> add         for section_name, section in self.defaults.items():
            self.insert_config_section(section_name, section.helptext, new_config)
            for item, opt in section.items.items():
                if section_name not in self.config.sections():
                    logger.debug("Adding new config section: '%s'", section_name)
                    opt_value = opt.default </s> remove                                        "Defaulting to: '%s'", opt_value, section, item, default)
                        self.config.set(section, item, default)
 </s> add                                        "Defaulting to: '%s'",
                                       opt_value, section_name, item, default)
                        self.config.set(section_name, item, default)
    def _check_config_choices(self) -> None:
          self.config.optionxform = str
          self.save_config()
          logger.debug("Updated config")
  
    def _check_config_choices(self) -> None:
          """ Check that config items are valid choices """
          logger.debug("Checking config choices")
          for section, items in self.defaults.items():
              for item, opt in items.items():
                  if item == "helptext" or not opt["choices"]:
keep keep keep keep 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