code: def update_list(self):
          
          self.listwidget.clear()
          for name in self.pathlist+self.ro_pathlist:
              item = QListWidgetItem(name)
              item.setIcon(ima.icon('DirClosedIcon'))
              if name in self.ro_pathlist:
                  item.setFlags(Qt.NoItemFlags | Qt.ItemIsUserCheckable)
                  item.setCheckState(Qt.Checked)
              elif name in self.not_active_pathlist:
                  item.setFlags(item.flags() | Qt.ItemIsUserCheckable)
                  item.setCheckState(Qt.Unchecked)
              else:
                  item.setFlags(item.flags() | Qt.ItemIsUserCheckable)
                  item.setCheckState(Qt.Checked)
              self.listwidget.addItem(item)
          self.refresh()
docs: Update path list