Kaynağa Gözat

fix crash + more beautiful cd numbering in preview

Noah Vogt 1 yıl önce
ebeveyn
işleme
5b558402e7
2 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 1 1
      recording/cd.py
  2. 4 3
      recording/gui.py

+ 1 - 1
recording/cd.py

@@ -145,7 +145,7 @@ def burn_and_eject_cd(
 
     if burn_success:
         InfoMsgBox(
-            QMessageBox.Info,
+            QMessageBox.Information,
             "Info",
             f"Successfully burned CD #{cd_num}. " + extra_success_msg,
         )

+ 4 - 3
recording/gui.py

@@ -59,8 +59,6 @@ class CheckBoxConstruct:
     check_box: QCheckBox
 
 
-
-
 class WaveAndSheetPreviewChooserGUI(
     QDialog
 ):  # pylint: disable=too-few-public-methods
@@ -97,7 +95,10 @@ class WaveAndSheetPreviewChooserGUI(
                     f"Segment {(num+1):0{const.CD_RECORD_FILENAME_ZFILL}}"
                 )
             else:
-                check_box = QCheckBox(item)
+                cd_numbering = "CD #" + item[
+                    item.find("-") + 1 : item.find(".")
+                ].lstrip("0")
+                check_box = QCheckBox(cd_numbering)
             if num == 0 and source_type is AudioSourceFileType.CUESHEET:
                 check_box.setChecked(True)
             button_layout = QHBoxLayout()