Skip to content

Commit

Permalink
fix: Include .mkv files (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Mar 7, 2024
1 parent 9d8e100 commit 6af3b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Folders/Extensions/UTType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ extension UTType {
return UTType(filenameExtension: "cbz")!
}

static var mkv: Self {
return UTType(filenameExtension: "mkv")!
}

static var stl: Self {
return UTType(filenameExtension: "stl")!
}
Expand Down
2 changes: 1 addition & 1 deletion Folders/Views/GridView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class InnerGridView: NSView {

init(sceneModel: SceneModel, store: Store, ownerURL: URL, directoryURL: URL) {
self.sceneModel = sceneModel
let filter: Filter = .owner(ownerURL) && .parent(directoryURL) && (.conforms(to: .pdf) || .conforms(to: .jpeg) || .conforms(to: .gif) || .conforms(to: .png) || .conforms(to: .video) || .conforms(to: .mpeg4Movie) || .conforms(to: .cbz) || .conforms(to: .stl) || .conforms(to: .mp3) || .conforms(to: .tap))
let filter: Filter = .owner(ownerURL) && .parent(directoryURL) && (.conforms(to: .pdf) || .conforms(to: .jpeg) || .conforms(to: .gif) || .conforms(to: .png) || .conforms(to: .video) || .conforms(to: .mpeg4Movie) || .conforms(to: .cbz) || .conforms(to: .stl) || .conforms(to: .mp3) || .conforms(to: .tap) || .conforms(to: .mkv))
self.storeView = StoreView(store: store, filter: filter, sort: .displayNameDescending)

scrollView = NSScrollView()
Expand Down

0 comments on commit 6af3b0b

Please sign in to comment.