Fix more queue regressions, use applescript to add files to iTunes.

This commit is contained in:
Damiano Galassi committed 2019-01-31 12:34:41 +01:00
1 parent 6d71efe9b4
commit 85494f3c57
9 files changed
+125 -66

No files matched your search

+3 -2
View File
@@ -46,6 +46,7 @@ class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDelegate,
fatalError("Invalid queue url")
}
super.init(window: nil)
_ = window
}
required init?(coder: NSCoder) {
@@ -264,8 +265,8 @@ class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDelegate,
if prefs.fixTrackLanguage {
item.addAction(QueueSetLanguageAction(language: prefs.fixTrackLanguageValue))
}
if prefs.applyColorSpace {
item.addAction(QueueColorSpaceAction(tag: QueueColorSpaceActionTag(rawValue: UInt16(prefs.applyColorSpaceValue))!))
if prefs.applyColorSpace, let tag = QueueColorSpaceActionTag(rawValue: UInt16(prefs.applyColorSpaceValue)) {
item.addAction(QueueColorSpaceAction(tag: tag))
}
if let set = prefs.metadataSet {
item.addAction(QueueSetAction(preset: set))