mirror of
https://github.com/vyvir/althea.git
synced 2026-06-05 14:59:30 -05:00
Merge pull request #92 from hcortezr/pair-check-pr
Change pairing check command to validate
This commit is contained in:
@@ -161,7 +161,7 @@ def on_abtdlg(self):
|
|||||||
about.destroy()
|
about.destroy()
|
||||||
|
|
||||||
def paircheck(): # Check if the device is paired already
|
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:
|
if pairchecking.returncode == 0:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user