Indenting
This commit is contained in:
parent
b5a81c2fc4
commit
610b0cdbe6
Binary file not shown.
@ -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"])
|
||||||
|
Loading…
Reference in New Issue
Block a user