Skip to content

Commit

Permalink
fix legacy drive[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
parmigggiana authored Nov 6, 2024
1 parent 7c9b0c3 commit d66fc1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pinolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def standard_procedure(self):
for drive in drives:
if drive[1] == "":
# TODO: allow to enter ID manually?
message = f"{drive[0]} disk doesn't have a TARALLO id.\n" "Would you like to create the item on TARALLO?"
message = f"{drive} disk doesn't have a TARALLO id.\n" "Would you like to create the item on TARALLO?"
dialog_result = warning_dialog(message, dialog_type="yes_no_cancel")
if dialog_result == QMessageBox.Yes:
self.upload_to_tarallo(std=True)
Expand All @@ -421,9 +421,9 @@ def get_wipe_disks_message(drives):
if len(drives) > 1:
message = f"Do you want to wipe these disks?"
for drive in drives:
message += f"\n{drive[0]}"
message += f"\n{drive}"
elif len(drives) > 0:
message = f"Do you want to wipe {drives[0][0]}?"
message = f"Do you want to wipe {drives[0]}?"
else:
message = f"Do you want to wipe selected disks?"
return message
Expand All @@ -449,7 +449,7 @@ def erase(self, std=False, drives=None):
if drives_qty > 1:
message += "Disks:"
for drive in drives:
message += f" {drive[0]}"
message += f" {drive}"
else:
message += f"Disk: {drives[0]}"
if critical_dialog(message, dialog_type="yes_no") != QMessageBox.Yes:
Expand Down

0 comments on commit d66fc1b

Please sign in to comment.