                  if section not in self.config.sections():
                      logger.debug("Adding new config section: '%s'", section)
                      opt_value = opt["default"]
                  else:
                      opt_value = self.config[section].get(item, opt["default"])
                  self.insert_config_item(section,
                                          item,
                                          opt_value,
                                          opt,
                                          new_config)
          self.config = new_config
          self.config.optionxform = str
          self.save_config()
          logger.debug("Updated config")
  
 
</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         self.config.optionxform = str
 </s> add         self.config.optionxform = str  # type:ignore </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     def check_config_choices(self):
 </s> add     def _check_config_choices(self) -> None:
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
                  if section not in self.config.sections():
                      logger.debug("Adding new config section: '%s'", section)
                      opt_value = opt["default"]
                  else:
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
                    opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config)
          self.config = new_config
          self.config.optionxform = str
          self.save_config()
          logger.debug("Updated config")
  
keep keep keep keep replace replace replace replace 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