'Expand the top-level category "folder" once and only once.'

def expand_items(self, idx, items):

    if (not items):
        return
    if (idx in self.expanded_items):
        return
    self.expanded_items.add(idx)
    item = self.topLevelItem(idx)
    if item:
        self.expandItem(item)
