Skip to content

Commit

Permalink
Fix error selected_reading_node undefined in GenericImporter
Browse files Browse the repository at this point in the history
  • Loading branch information
1over137 committed Mar 23, 2024
1 parent 36b72a9 commit f9a877b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vocabsieve/importer/GenericImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self,
self.anki_button = QPushButton("Add notes to Anki")
self.anki_button.setEnabled(False)
self.anki_button.clicked.connect(self.to_anki)
self.selected_reading_notes: list[ReadingNote] = []
if show_selector_date:
possible_start_dates = sorted(set(self.orig_dates_day))
self.datewidget = QComboBox()
Expand All @@ -92,6 +93,7 @@ def __init__(self,
self.src_selector_scrollarea = QScrollArea()
self.src_selector_scrollarea.setWidget(self.src_selector)
self._layout.addRow(self.src_selector_scrollarea)
self.updateHighlightCount()
else:
self.updateHighlightCount(filter_by_notes=False)

Expand Down

0 comments on commit f9a877b

Please sign in to comment.