mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disable some menu items for everyone except Brent
This commit is contained in:
@@ -487,14 +487,18 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
|
||||
}
|
||||
|
||||
#if !DEBUG
|
||||
if item.action == #selector(debugDropConditionalGetInfo(_:)) ||
|
||||
item.action == #selector(debugTestCrashReporterWindow(_:)) ||
|
||||
item.action == #selector(debugTestCrashReportSending(_:)) ||
|
||||
item.action == #selector(forceCrash(_:)) {
|
||||
if item.action == #selector(debugDropConditionalGetInfo(_:)) {
|
||||
return false
|
||||
}
|
||||
#endif
|
||||
|
||||
if item.action == #selector(debugTestCrashReporterWindow(_:)) ||
|
||||
item.action == #selector(debugTestCrashReportSending(_:)) ||
|
||||
item.action == #selector(forceCrash(_:)) {
|
||||
let appIDPrefix = Bundle.main.infoDictionary?["AppIdentifierPrefix"] as! String
|
||||
return appIDPrefix == "M8L2WTLA8W."
|
||||
}
|
||||
|
||||
#if !MAC_APP_STORE
|
||||
if item.action == #selector(toggleWebInspectorEnabled(_:)) {
|
||||
(item as! NSMenuItem).state = AppDefaults.shared.webInspectorEnabled ? .on : .off
|
||||
|
||||
Reference in New Issue
Block a user