Skip to content
Snippets Groups Projects
Commit 90620ffd authored by Daniel Schulte's avatar Daniel Schulte
Browse files

linuxparty.py: Fixed not trying to mount the stick if it is not mounted

parent bccfab6b
Branches ws15
No related tags found
No related merge requests found
......@@ -57,7 +57,11 @@ def enable_offline_repo(gui):
stick = None
while True:
stick = find_lipstick()
print(stick)
if stick is not None:
if len(stick[2])<1:
mount_stick(stick[1])
stick = find_lipstick()
if stick is None or (type(stick) is tuple and len(stick[2])<=0):
choice = QtWidgets.QMessageBox.question(gui, 'LIPStick nicht gefunden!', "Möchtest du noch einmal versuchen den LIPStick zu finden?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)
if choice == QtWidgets.QMessageBox.No:
......@@ -68,7 +72,7 @@ def enable_offline_repo(gui):
break
if stick is None:
QtWidgets.QMessageBox.error(gui, "Kein LIPSTick gefunden", "Es wird ohne LIPStick weiter gemacht")
QtWidgets.QMessageBox.critical(gui, "Kein LIPStick gefunden", "Es wird ohne LIPStick weiter gemacht")
return
subprocess_wrap(['/bin/bash', basedir+"/liprepoctl.sh", "on", stick[2][0]])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment