Skip to content

Commit

Permalink
Fix missing bones in source list
Browse files Browse the repository at this point in the history
  • Loading branch information
cochrane committed May 12, 2024
1 parent 8d016fa commit 769db2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GLLara/GLLItemListController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import Cocoa
}
return item.parent == self.item && !deletedObjects.contains($0)
}
itemControllers.append(contentsOf: newItems.map { GLLItemController(item: $0 as! GLLItem, outlineView: outlineView, parent: self, showBones: self.item != nil)})
itemControllers.append(contentsOf: newItems.map { GLLItemController(item: $0 as! GLLItem, outlineView: outlineView, parent: self, showBones: self.item == nil)})
itemControllers.sort { $0.item!.displayName < $1.item!.displayName }
outlineView.reloadItem(self, reloadChildren: true)
}
Expand All @@ -47,7 +47,7 @@ import Cocoa
initialRequest.predicate = NSPredicate(format: "parent == %@", item ?? NSNull())
let initial = try! managedObjectContext.fetch(initialRequest)
itemControllers = initial.map {
GLLItemController(item: $0, outlineView: outlineView, parent: self, showBones: self.item != nil)
GLLItemController(item: $0, outlineView: outlineView, parent: self, showBones: self.item == nil)
}
}

Expand Down

0 comments on commit 769db2e

Please sign in to comment.