The branch looks good, the only thing, if the setting being affected is something from the editor, this function should be in the main_container, not in tools_dock