Indenting

This commit is contained in:
Aaron Bieber 2021-06-13 08:16:13 -06:00
parent b5a81c2fc4
commit 610b0cdbe6
2 changed files with 4 additions and 5 deletions

View File

@ -48,13 +48,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
repeats: true) repeats: true)
let menu = NSMenu() let menu = NSMenu()
menu.addItem(NSMenuItem(title: "Quit", action: menu.addItem(NSMenuItem(title: "Quit", action:
#selector(NSApplication.terminate(_:)), keyEquivalent: "q")) #selector(NSApplication.terminate(_:)), keyEquivalent: "q"))
si.menu = menu si.menu = menu
_ = dnc.addObserver(forName: .init("com.apple.screenIsLocked"), _ = dnc.addObserver(
forName: .init("com.apple.screenIsLocked"),
object: nil, queue: .main) { _ in object: nil, queue: .main) { _ in
NSLog("Screen Locked.") NSLog("Screen Locked.")
self.runTask(cmd: "/usr/bin/ssh-add", args: ["-D"]) self.runTask(cmd: "/usr/bin/ssh-add", args: ["-D"])