Indenting
This commit is contained in:
parent
b5a81c2fc4
commit
610b0cdbe6
Binary file not shown.
@ -48,14 +48,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
repeats: true)
|
||||
|
||||
let menu = NSMenu()
|
||||
|
||||
menu.addItem(NSMenuItem(title: "Quit", action:
|
||||
#selector(NSApplication.terminate(_:)), keyEquivalent: "q"))
|
||||
|
||||
#selector(NSApplication.terminate(_:)), keyEquivalent: "q"))
|
||||
si.menu = menu
|
||||
|
||||
_ = dnc.addObserver(forName: .init("com.apple.screenIsLocked"),
|
||||
object: nil, queue: .main) { _ in
|
||||
_ = dnc.addObserver(
|
||||
forName: .init("com.apple.screenIsLocked"),
|
||||
object: nil, queue: .main) { _ in
|
||||
NSLog("Screen Locked.")
|
||||
self.runTask(cmd: "/usr/bin/ssh-add", args: ["-D"])
|
||||
self.runTask(cmd: "/usr/bin/sudo", args: ["-K"])
|
||||
|
Loading…
Reference in New Issue
Block a user