From dc6f6ee6f2a236f3f248af6b8b7f10931acefff7 Mon Sep 17 00:00:00 2001 From: vectorsigma72 Date: Sun, 3 May 2020 14:17:45 +0200 Subject: [PATCH] Correction for previous commit --- CloverApp/Clover/RunAtLogin.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CloverApp/Clover/RunAtLogin.swift b/CloverApp/Clover/RunAtLogin.swift index 7dccdd8a2..93902ca6d 100644 --- a/CloverApp/Clover/RunAtLogin.swift +++ b/CloverApp/Clover/RunAtLogin.swift @@ -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 } } }