                                         "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 """
          if set(self.config.sections()) != set(self.defaults.keys()):
              logger.debug("Default config has new section(s)")
              return True
  
          for section, items in self.defaults.items():
 
</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) </s> remove         for section, items in self.defaults.items():
            opts = [opt for opt in items.keys() if opt != "helptext"]
            exists = [opt for opt in self.config[section].keys()
 </s> add         for section_name, section in self.defaults.items():
            opts = list(section.items)
            exists = [opt for opt in self.config[section_name].keys() </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         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
    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
        """
                                         "Defaulting to: '%s'", opt_value, section, item, default)
                          self.config.set(section, item, default)
          logger.debug("Checked config choices")
  
    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
        """
    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
        """
    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
        """
          if set(self.config.sections()) != set(self.defaults.keys()):
              logger.debug("Default config has new section(s)")
              return True
  
          for section, items in self.defaults.items():
keep keep keep keep 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