Change pairing check command to validate

Updated the pairing check command to use 'idevicepair validate' instead of 'idevicepair pair' to avoid error -5.
This commit is contained in:
Humberto Cortez
2026-02-03 00:05:26 -08:00
committed by GitHub
parent 89c23e4791
commit 5ea5d4f290
+1 -1
View File
@@ -161,7 +161,7 @@ def on_abtdlg(self):
about.destroy()
def paircheck(): # Check if the device is paired already
pairchecking = subprocess.run('idevicepair pair | grep -q "SUCCESS"', shell=True)
pairchecking = subprocess.run('idevicepair validate | grep -q "SUCCESS"', shell=True) # use validate instaed of pair, pair causes error -5 if already paired
if pairchecking.returncode == 0:
return False
else: