Remove Debug menu when running a Release build.

This commit is contained in:
Brent Simmons 2018-01-27 11:32:59 -08:00
parent c66269bd61
commit 5888e1b7d0
2 changed files with 8 additions and 1 deletions

View File

@ -27,6 +27,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
var feedIconDownloader: FeedIconDownloader!
var appName: String!
@IBOutlet var debugMenuItem: NSMenuItem!
lazy var genericFeedImage: NSImage? = {
let path = "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns"
let image = NSImage(contentsOfFile: path)
@ -143,6 +145,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
}
#if RELEASE
debugMenuItem.menu?.removeItem(debugMenuItem)
DispatchQueue.main.async {
self.refreshAll(self)
}

View File

@ -519,7 +519,11 @@
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
</connections>
</application>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Evergreen" customModuleProvider="target"/>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Evergreen" customModuleProvider="target">
<connections>
<outlet property="debugMenuItem" destination="UqE-mp-gtV" id="OnR-lr-Zlt"/>
</connections>
</customObject>
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
<customObject id="5Wg-Cw-OOw" customClass="SUUpdater"/>
</objects>