Fix queue toolbar items validation
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -129,7 +129,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"),
|
toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"),
|
||||||
image: "ToolbarActionTemplate",
|
image: "ToolbarActionTemplate",
|
||||||
symbolName: "photo.stack",
|
symbolName: "photo.stack",
|
||||||
target: target,
|
target: nil,
|
||||||
action: #selector(AppDelegate.showQueueWindow(_:)))
|
action: #selector(AppDelegate.showQueueWindow(_:)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -227,7 +227,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
#selector(iTunesFriendlyTrackGroups(_:)),
|
#selector(iTunesFriendlyTrackGroups(_:)),
|
||||||
#selector(clearTrackNames(_:)),
|
#selector(clearTrackNames(_:)),
|
||||||
#selector(prettifyAudioTrackNames(_:)),
|
#selector(prettifyAudioTrackNames(_:)),
|
||||||
#selector(fixAudioFallbacks(_:)):
|
#selector(fixAudioFallbacks(_:)),
|
||||||
|
#selector(sendToQueue(_:)):
|
||||||
return true
|
return true
|
||||||
|
|
||||||
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
|
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
|
||||||
@@ -288,6 +289,10 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
|
@IBAction func sendToQueue(_ sender: Any) {
|
||||||
|
doc.sendToQueue(self)
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func sendToExternalApp(_ sender: Any) {
|
@IBAction func sendToExternalApp(_ sender: Any) {
|
||||||
if let fileURL = doc.fileURL {
|
if let fileURL = doc.fileURL {
|
||||||
_ = sendToFileExternalApp(fileURL: fileURL)
|
_ = sendToFileExternalApp(fileURL: fileURL)
|
||||||
|
|||||||
Reference in new issue
Block a user