Update send to feature to send to TV app on 10.15.

This commit is contained in:
Damiano Galassi committed 2019-10-15 08:34:35 +02:00
1 parent 6bb26182ba
commit dbe5080541
9 files changed
+112 -77

No files matched your search

+6
View File
@@ -38,6 +38,8 @@ final class DocumentController : NSDocumentController {
@NSApplicationMain
final class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var sendToExternalApp: NSMenuItem!
private static func appSupportURL() -> URL {
let fileManager = FileManager.default
if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask)
@@ -156,6 +158,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
if UserDefaults.standard.bool(forKey: "SBShowQueueWindow") {
QueueController.shared.showWindow(self)
}
if #available(macOS 10.15, *) {
sendToExternalApp.title = NSLocalizedString("Send to TV", comment: "Send to tv app menu item")
}
}
func applicationDidFinishLaunching(_ notification: Notification) {