Update send to feature to send to TV app on 10.15.
This commit is contained in:
9 files changed
+112
-77
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user