fix: blind fix trying to guess root cause of #202
This commit is contained in:
1 parent
b091282b54
commit
fb4fe11327
1 file changed
+1
-1
@@ -103,7 +103,7 @@ class GeneralTab {
|
||||
|
||||
// adding/removing login item depending on the checkbox state
|
||||
@available(OSX, deprecated: 10.11)
|
||||
@objc private static func startAtLoginCallback(_ sender: NSControl) {
|
||||
@objc static func startAtLoginCallback(_ sender: NSControl) {
|
||||
let loginItems = LSSharedFileListCreate(nil, kLSSharedFileListSessionLoginItems.takeRetainedValue(), nil).takeRetainedValue()
|
||||
let loginItemsSnapshot = LSSharedFileListCopySnapshot(loginItems, nil).takeRetainedValue() as! [LSSharedFileListItem]
|
||||
loginItemsSnapshot.forEach {
|
||||
|
||||
Reference in new issue
Block a user