Reenable Extensions for the 5.5 release

This commit is contained in:
Maurice Parker 2020-08-02 14:10:02 -05:00
parent 87fc73c5de
commit 844ef03a65
2 changed files with 4 additions and 6 deletions

View File

@ -26,9 +26,7 @@ import RSCore
}
static func customSharingServices(for items: [Any]) -> [NSSharingService] {
// MarsEdit and MicroBlog are hardcode only for the Mac 5.1 release
let hardCodedCommands: [SendToCommand] = [SendToMarsEditCommand(), SendToMicroBlogCommand()]
let customServices = hardCodedCommands.compactMap { (sendToCommand) -> NSSharingService? in
let customServices = ExtensionPointManager.shared.activeSendToCommands.compactMap { (sendToCommand) -> NSSharingService? in
guard let object = items.first else {
return nil

View File

@ -40,9 +40,9 @@ class PreferencesWindowController : NSWindowController, NSToolbarDelegate {
specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.Accounts,
name: NSLocalizedString("Accounts", comment: "Preferences"),
image: NSImage(named: NSImage.userAccountsName))]
// specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.Extensions,
// name: NSLocalizedString("Extensions", comment: "Preferences"),
// image: AppAssets.extensionPreference)]
specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.Extensions,
name: NSLocalizedString("Extensions", comment: "Preferences"),
image: AppAssets.extensionPreference)]
// Omit the Advanced Preferences for now because the Software Update related functionality is
// forbidden/non-applicable, and we can rely upon Apple to some extent for crash reports. We