                      # retain saved values that have not been updated
                      new_opt = self._config.get(config_section, item)
                      logger.debug("Retaining option: (item: '%s', value: '%s')", item, new_opt)
                  else:
                      new_opt = self.tk_vars[config_section][item].get()
                      logger.debug("Setting option: (item: '%s', value: '%s')", item, new_opt)
  
                      # Set config_dicts value to new saved value
                      self._config_dicts[config_section][item].set_initial_value(new_opt)
  
 
</s> remove                     new_opt = self._config.get(config_section, item)
 </s> add                     new_opt = self._config.get(section_name, item) </s> remove                     self._config_dicts[config_section][item].set_initial_value(new_opt)
 </s> add                     self._config_dicts[section_name][item].set_initial_value(new_opt) </s> remove                 if ((section is not None and config_section != section)
                        or config_section not in self.tk_vars):
 </s> add                 if ((section is not None and section_name != section)
                        or section_name not in self.tk_vars): </s> remove                 helptext = self._config.format_help(options["helptext"], is_section=False)
                new_config.set(config_section, helptext)
                new_config.set(config_section, item, str(new_opt))
 </s> add                 helptext = self._config.format_help(options.helptext, is_section=False)
                new_config.set(section_name, helptext)
                new_config.set(section_name, item, str(new_opt)) </s> remove             for item, options in items.items():
 </s> add             for item, options in sect.items.items():
                    new_opt = self.tk_vars[section_name][item].get()
                      # retain saved values that have not been updated
                      new_opt = self._config.get(config_section, item)
                      logger.debug("Retaining option: (item: '%s', value: '%s')", item, new_opt)
                  else:
                    new_opt = self.tk_vars[section_name][item].get()
                      logger.debug("Setting option: (item: '%s', value: '%s')", item, new_opt)
  
                      # Set config_dicts value to new saved value
                      self._config_dicts[config_section][item].set_initial_value(new_opt)
  
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 
tools/preview/control_panels.py