def update_tab_menu(self):
        """Update tab menu."""

        menus = {
            "internal": INTERNAL_TAB_MENU,
            "external": EXTERNAL_TAB_MENU,
            "svn": {
                "internal": SVN_TAB_INTERNAL_MENU,
                "external": SVN_TAB_EXTERNAL_MENU
            },
            "git": {
                "internal": GIT_TAB_INTERNAL_MENU,
                "external": GIT_TAB_EXTERNAL_MENU
            },
            "hg": {
                "internal": HG_TAB_INTERNAL_MENU,
                "external": HG_TAB_EXTERNAL_MENU
            }
        }
        if "tab" in self.menu_types:
            submenu = load_settings().get("submenu", [])
            self.update_menu(TAB_MENU, menus, "tab" in submenu)
        else:
            self.remove_menu(TAB_MENU)
dataset/ETHPy150Open facelessuser/EasyDiff/easy_diff_dynamic_menu.py/MenuUpdater.update_tab_menu/original