mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-22 13:37:07 +00:00
parent
017bdb85a4
commit
bd683b16f2
@ -6,6 +6,7 @@ import SecretKit
|
|||||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||||
|
|
||||||
var window: NSWindow!
|
var window: NSWindow!
|
||||||
|
@IBOutlet var newMenuItem: NSMenuItem!
|
||||||
@IBOutlet var toolbar: NSToolbar!
|
@IBOutlet var toolbar: NSToolbar!
|
||||||
let storeList: SecretStoreList = {
|
let storeList: SecretStoreList = {
|
||||||
let list = SecretStoreList()
|
let list = SecretStoreList()
|
||||||
@ -35,6 +36,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||||||
plus.view = NSButton(image: NSImage(named: NSImage.addTemplateName)!, target: self, action: #selector(add(sender:)))
|
plus.view = NSButton(image: NSImage(named: NSImage.addTemplateName)!, target: self, action: #selector(add(sender:)))
|
||||||
plus.layoutAttribute = .right
|
plus.layoutAttribute = .right
|
||||||
window.addTitlebarAccessoryViewController(plus)
|
window.addTitlebarAccessoryViewController(plus)
|
||||||
|
newMenuItem.isEnabled = true
|
||||||
}
|
}
|
||||||
runSetupIfNeeded()
|
runSetupIfNeeded()
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<scene sceneID="JPo-4y-FX3">
|
<scene sceneID="JPo-4y-FX3">
|
||||||
<objects>
|
<objects>
|
||||||
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
||||||
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
|
<menu key="mainMenu" title="Main Menu" systemMenu="main" autoenablesItems="NO" id="AYu-sK-qS6">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="Secretive" id="1Xt-HY-uBw">
|
<menuItem title="Secretive" id="1Xt-HY-uBw">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
@ -57,9 +57,9 @@
|
|||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem title="File" id="dMs-cI-mzQ">
|
<menuItem title="File" id="dMs-cI-mzQ">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<menu key="submenu" title="File" id="bib-Uj-vzu">
|
<menu key="submenu" title="File" autoenablesItems="NO" id="bib-Uj-vzu">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="New" keyEquivalent="n" id="Was-JA-tGl">
|
<menuItem title="New" enabled="NO" keyEquivalent="n" id="Was-JA-tGl">
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="addWithSender:" target="Voe-Tx-rLC" id="U1t-YZ-Hn5"/>
|
<action selector="addWithSender:" target="Voe-Tx-rLC" id="U1t-YZ-Hn5"/>
|
||||||
</connections>
|
</connections>
|
||||||
@ -125,6 +125,7 @@
|
|||||||
</application>
|
</application>
|
||||||
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Secretive" customModuleProvider="target">
|
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Secretive" customModuleProvider="target">
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="newMenuItem" destination="Was-JA-tGl" id="C8s-uk-gMA"/>
|
||||||
<outlet property="toolbar" destination="bvo-mt-QR4" id="XSF-g2-znt"/>
|
<outlet property="toolbar" destination="bvo-mt-QR4" id="XSF-g2-znt"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
|
Loading…
Reference in New Issue
Block a user