Skip to content

Commit 5324d4a

Browse files
author
oil3
committed
async
1 parent 7817b5a commit 5324d4a

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

Webm Quicklook.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
/* Begin PBXFileReference section */
4747
340B3CB82CBF8AA4009C20B5 /* sample.webm */ = {isa = PBXFileReference; lastKnownFileType = file; path = sample.webm; sourceTree = "<group>"; };
48-
7204BF932B8B21410035F558 /* Webm-Quicklook-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "Webm-Quicklook-Info.plist"; sourceTree = SOURCE_ROOT; };
4948
720ECCDA2B82A21D00FB29BF /* Webm Quicklook.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Webm Quicklook.app"; sourceTree = BUILT_PRODUCTS_DIR; };
5049
720ECCDD2B82A21D00FB29BF /* Webm_QuicklookApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Webm_QuicklookApp.swift; sourceTree = "<group>"; };
5150
720ECCDF2B82A21D00FB29BF /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
@@ -104,7 +103,6 @@
104103
720ECCDC2B82A21D00FB29BF /* Webm Quicklook */ = {
105104
isa = PBXGroup;
106105
children = (
107-
7204BF932B8B21410035F558 /* Webm-Quicklook-Info.plist */,
108106
720ECCDD2B82A21D00FB29BF /* Webm_QuicklookApp.swift */,
109107
720ECCDF2B82A21D00FB29BF /* ContentView.swift */,
110108
340B3CB82CBF8AA4009C20B5 /* sample.webm */,

Webm Quicklook.xcodeproj/project.xcworkspace/xcuserdata/zzs.xcuserdatad/IDEFindNavigatorScopes.plist

Lines changed: 0 additions & 5 deletions
This file was deleted.

Webm Quicklook/PreviewViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class PreviewViewController: NSViewController, QLPreviewingController {
66

77
var webView = WKWebView(frame: .zero)
88

9-
func preparePreviewOfFile(at url: URL, completionHandler: @escaping (Error?) -> Void) {
9+
func preparePreviewOfFile(at url: URL) async {
1010
// Stop any previous media playback to avoid conflicts
1111
webView.stopLoading()
1212
webView.load(URLRequest(url: URL(string: "about:blank")!))
@@ -31,7 +31,6 @@ class PreviewViewController: NSViewController, QLPreviewingController {
3131
// At least using it natively
3232
webView.configuration.userContentController.addUserScript(WKUserScript(source: pauseVideoJS, injectionTime: .atDocumentEnd, forMainFrameOnly: true))
3333

34-
completionHandler(nil)
3534
}
3635

3736
override func loadView() {

0 commit comments

Comments
 (0)