From bd683b16f2d2586df6050028f84f923d0a4aa847 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 15 Mar 2020 18:30:45 -0700 Subject: [PATCH] Fix #53 (#54) --- Secretive/AppDelegate.swift | 2 ++ Secretive/Base.lproj/Main.storyboard | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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 @@ +