diff --git a/Secretive/AppDelegate.swift b/Secretive/AppDelegate.swift index 7c6c07f..2e6096c 100644 --- a/Secretive/AppDelegate.swift +++ b/Secretive/AppDelegate.swift @@ -6,6 +6,7 @@ import SecretKit class AppDelegate: NSObject, NSApplicationDelegate { var window: NSWindow! + @IBOutlet var newMenuItem: NSMenuItem! @IBOutlet var toolbar: NSToolbar! let storeList: 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.layoutAttribute = .right window.addTitlebarAccessoryViewController(plus) + newMenuItem.isEnabled = true } runSetupIfNeeded() } diff --git a/Secretive/Base.lproj/Main.storyboard b/Secretive/Base.lproj/Main.storyboard index 60f9b48..b7df350 100644 --- a/Secretive/Base.lproj/Main.storyboard +++ b/Secretive/Base.lproj/Main.storyboard @@ -9,7 +9,7 @@ - + @@ -57,9 +57,9 @@ - + - + @@ -125,6 +125,7 @@ +