Correction for previous commit

This commit is contained in:
vectorsigma72 2020-05-03 14:17:45 +02:00
parent 3513285889
commit dc6f6ee6f2

View File

@ -82,7 +82,6 @@ extension AppDelegate {
func removeAsLoginItem() -> Bool {
// remove any Clover.app logged in
self.removeLaunchAtStartup() // call new method too (just in case store login item somewhere..)
print("removeAsLoginItem()")
let sharedFileList = LSSharedFileListCreate(nil,
kLSSharedFileListSessionLoginItems.takeRetainedValue(),
nil).takeRetainedValue()
@ -93,7 +92,7 @@ extension AppDelegate {
let bi = info[kCFBundleIdentifierKey as String] as? String
if bi == Bundle.main.bundleIdentifier {
let status = LSSharedFileListItemRemove(sharedFileList, item)
print(status)
return status == 0
}
}
}