def METHOD_NAME(self, widget, state):
    """ Save configuration and refresh nodes to apply the change """
    curstate = self.config.get("bg_color_enable")
    if curstate != self.bg_color_button.get_active():
        self.config.set("bg_color_enable", not curstate)
        self._refresh_task_browser()