From b8e1fb1ab4e9800f1a184583fcee167ed4cfa36a Mon Sep 17 00:00:00 2001 From: Daniel Jalkut Date: Mon, 21 Oct 2019 18:47:06 -0400 Subject: [PATCH] Omit the Advanced preferences tab from MAS build. --- Mac/Preferences/PreferencesWindowController.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Mac/Preferences/PreferencesWindowController.swift b/Mac/Preferences/PreferencesWindowController.swift index d8ae463bc..79570b50a 100644 --- a/Mac/Preferences/PreferencesWindowController.swift +++ b/Mac/Preferences/PreferencesWindowController.swift @@ -35,7 +35,14 @@ class PreferencesWindowController : NSWindowController, NSToolbarDelegate { var specs = [PreferencesToolbarItemSpec]() specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.General, name: NSLocalizedString("General", comment: "Preferences"), imageName: NSImage.preferencesGeneralName)] specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.Accounts, name: NSLocalizedString("Accounts", comment: "Preferences"), imageName: NSImage.userAccountsName)] - specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.Advanced, name: NSLocalizedString("Advanced", comment: "Preferences"), imageName: NSImage.advancedName)] + + // 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 + // can add back the Crash Reporter preferences when we're ready to dynamically shuffle the rest + // of the content in this tab. + #if !MAC_APP_STORE + specs += [PreferencesToolbarItemSpec(identifierRawValue: ToolbarItemIdentifier.Advanced, name: NSLocalizedString("Advanced", comment: "Preferences"), imageName: NSImage.advancedName)] + #endif return specs }()