docs: def remove_menu(self, menu):
          """
          Removes a sub-menu from the context menu.
          :param menu: Sub-menu to remove.
          """
          self._menus.remove(menu)
          for action in menu.actions():
              self.removeAction(action)