Indenting
This commit is contained in:
parent
b5a81c2fc4
commit
610b0cdbe6
Binary file not shown.
@ -48,14 +48,13 @@ 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(
|
||||||
object: nil, queue: .main) { _ in
|
forName: .init("com.apple.screenIsLocked"),
|
||||||
|
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"])
|
||||||
self.runTask(cmd: "/usr/bin/sudo", args: ["-K"])
|
self.runTask(cmd: "/usr/bin/sudo", args: ["-K"])
|
||||||
|
Loading…
Reference in New Issue
Block a user