Commit 525b9fe7 authored by Daniel Schulte's avatar Daniel Schulte Committed by osak buildhauer user
Browse files Fixed not trying to mount the stick if it is not mounted

parent 81a0cb0d
......@@ -57,7 +57,11 @@ def enable_offline_repo(gui):
stick = None
while True:
stick = find_lipstick()
if stick is not None:
if len(stick[2])<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):
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")
subprocess_wrap(['/bin/bash', basedir+"/", "on", stick[2][0]])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment