From d66fc1b34da5fae3a74708130d754fa2063bd1c0 Mon Sep 17 00:00:00 2001 From: parmigggiana <59255877+parmigggiana@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:28:29 +0100 Subject: [PATCH] fix legacy drive[0] --- pinolo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pinolo.py b/pinolo.py index ac6e1ef..d24d492 100644 --- a/pinolo.py +++ b/pinolo.py @@ -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) @@ -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 @@ -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: