Merge pull request #92 from hcortezr/pair-check-pr

Change pairing check command to validate
This commit is contained in:
Vyvir
2026-02-07 18:33:17 +02:00
committed by GitHub
+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: