This commit is contained in:
Max Goedjen
2020-03-15 18:30:45 -07:00
committed by GitHub
parent 017bdb85a4
commit bd683b16f2
2 changed files with 6 additions and 3 deletions

View File

@@ -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()
}