Convert to Swift 5, convert QueueController to Swift.

This commit is contained in:
Damiano Galassi committed 2019-01-27 11:46:31 +01:00
1 parent 45dc075c77
commit 5725b0f830
21 files changed
+846 -916

No files matched your search

+3 -3
View File
@@ -21,7 +21,7 @@ import MP42Foundation
self.mp4 = MP42File()
}
@objc init(mp4: MP42File) throws {
init(mp4: MP42File) throws {
self.options = [:]
self.optimize = false
self.unsupportedMp4Brand = false
@@ -205,10 +205,10 @@ import MP42Foundation
@IBAction func sendToQueue(_ sender: Any) {
guard let windowForSheet = windowForSheet else { return }
let queue = SBQueueController.sharedManager
let queue = QueueController.shared
if mp4.hasFileRepresentation {
let item = SBQueueItem(mp4: mp4)
queue.add(item, preset: true)
queue.add(item, applyPreset: true)
close()
}
else {