code: def setViewList(self, views):
      names = [""]
      self.viewMap.clear()
  
      ## generate list of views to show in the link combo
      for v in views:
          name = v.name
          if (
              name is None
          ):  ## unnamed views do not show up in the view list (although they are linkable)
              continue
          names.append(name)
          self.viewMap[name] = v
  
      for i in [0, 1]:
          c = self.ctrl[i].linkCombo
          current = c.currentText()
          c.blockSignals(True)
          changed = True
          try:
              c.clear()
              for name in names:
                  c.addItem(name)
                  if name == current:
                      changed = False
                      c.setCurrentIndex(c.count() - 1)
          finally:
              c.blockSignals(False)
  
          if changed:
              c.setCurrentIndex(0)
              c.currentIndexChanged.emit(c.currentIndex())
  
imports: from ...Qt import QtCore, QtGui, QtWidgets
  from ...WidgetGroup import WidgetGroup
  from .None import axisCtrlTemplate_generic
  import weakref
  from .ViewBox import ViewBox
label_desc: Use image node_id 25 for calling the ViewBoxMenu obj's underlying member method code with example usage: obj.setViewList(views) without return types