Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jul 4, 2024
1 parent 9bd73a3 commit 8c5b870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iOSClient/Viewer/NCViewer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class NCViewer: NSObject {
return
}
}

// QLPreview
let item = URL(fileURLWithPath: utilityFileSystem.getDirectoryProviderStorageOcId(metadata.ocId, fileNameView: metadata.fileNameView))
if QLPreviewController.canPreview(item as QLPreviewItem) {
Expand All @@ -186,7 +187,7 @@ class NCViewer: NSObject {
let viewerQuickLook = NCViewerQuickLook(with: URL(fileURLWithPath: fileNamePath), isEditingEnabled: false, metadata: metadata)
viewController.present(viewerQuickLook, animated: true)
} else {
// Document Interaction Controller
// Document Interaction Controller
if let controller = viewController.tabBarController as? NCMainTabBarController {
NCActionCenter.shared.openDocumentController(metadata: metadata, controller: controller)
}
Expand Down

0 comments on commit 8c5b870

Please sign in to comment.