From 23ceda33bdeedd12aa106f2c731232f42575b21a Mon Sep 17 00:00:00 2001 From: Mizaki Date: Mon, 29 Apr 2024 00:13:45 +0100 Subject: [PATCH] fix self.load_data_styles name --- comictaggerlib/autotagmatchwindow.py | 6 +++--- comictaggerlib/taggerwindow.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/comictaggerlib/autotagmatchwindow.py b/comictaggerlib/autotagmatchwindow.py index 1b9edf2..73ca831 100644 --- a/comictaggerlib/autotagmatchwindow.py +++ b/comictaggerlib/autotagmatchwindow.py @@ -39,7 +39,7 @@ class AutoTagMatchWindow(QtWidgets.QDialog): self, parent: QtWidgets.QWidget, match_set_list: list[Result], - styles: list[str], + load_styles: list[str], fetch_func: Callable[[IssueResult], GenericMetadata], config: ct_ns, talker: ComicTalker, @@ -81,7 +81,7 @@ class AutoTagMatchWindow(QtWidgets.QDialog): self.buttonBox.button(QtWidgets.QDialogButtonBox.StandardButton.Ok).setText("Accept and Write Tags") self.match_set_list = match_set_list - self._styles = styles + self.load_data_styles = load_styles self.fetch_func = fetch_func self.current_match_set_idx = 0 @@ -254,7 +254,7 @@ class AutoTagMatchWindow(QtWidgets.QDialog): QtWidgets.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor)) md.overlay(ct_md) - for style in self._styles: + for style in self.load_data_styles: success = ca.write_metadata(md, style) QtWidgets.QApplication.restoreOverrideCursor() if not success: diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index 8a7b472..9810814 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -1616,7 +1616,7 @@ class TaggerWindow(QtWidgets.QMainWindow): ca_list = self.fileSelectionList.get_selected_archive_list() has_src_count = 0 - src_styles: list[str] = self.load_data_style + src_styles: list[str] = self.load_data_styles dest_styles: list[str] = self.save_data_styles if len(src_styles) == 1 and src_styles[0] in dest_styles: