def createItems(self): """ Create all the items for the model. :rtype: list[studiolibrary.LibraryItem] """ # Check if the database has changed since the last read call if self.isDirty(): paths = self.read().keys() items = studiolibrary.itemsFromPaths( paths, library=self, libraryWindow=self._libraryWindow) self._items = list(items) self.loadItemData(self._items) return self._items
def createItems(self): """ Create all the items for the model. :rtype: list[studiolibrary.LibraryItem] """ # Check if the database has changed since the last read call if self.isDirty(): paths = self.read().keys() items = studiolibrary.itemsFromPaths( paths, library=self, libraryWindow=self._libraryWindow ) self._items = list(items) self.loadItemData(self._items) return self._items