Create Debug menu. Fix #139.

This commit is contained in:
Brent Simmons 2017-11-19 22:39:13 -08:00
parent 1864f60e0b
commit cb7f324922
2 changed files with 19 additions and 1 deletions

View File

@ -406,6 +406,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
markEverywhereAsRead(with: mainWindowController!.window!)
}
@IBAction func debugDropConditionalGetInfo(_ sender: Any?) {
#if DEBUG
print("debug")
#endif
}
}
private extension AppDelegate {

View File

@ -392,7 +392,7 @@
</items>
</menu>
</menuItem>
<menuItem title="Go" id="FPs-q4-hLT" userLabel="Article">
<menuItem title="Go" id="FPs-q4-hLT">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Go" id="NQW-Ph-lw2">
<items>
@ -460,6 +460,19 @@
</items>
</menu>
</menuItem>
<menuItem title="Debug" id="UqE-mp-gtV" userLabel="Debug">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Debug" id="s1g-zr-8Oi">
<items>
<menuItem title="Drop Conditional Get Info" id="ek9-OK-xbc">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="debugDropConditionalGetInfo:" target="Voe-Tx-rLC" id="MTC-K8-rkx"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Window" id="aUF-d1-5bR">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Window" systemMenu="window" id="Td7-aD-5lo">