From 7e63070f133760f13e7736d647de7b81dff0b2f2 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Sun, 28 Apr 2024 23:55:50 +0100 Subject: [PATCH] Change ComicArchive type to set from list --- comictaggerlib/taggerwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index c4881dc..8a7b472 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -1190,7 +1190,7 @@ class TaggerWindow(QtWidgets.QMainWindow): failed_style = metadata_styles[style].name() break - self.comic_archive.load_cache(list(metadata_styles)) + self.comic_archive.load_cache(set(metadata_styles)) QtWidgets.QApplication.restoreOverrideCursor() if failed_style: @@ -1592,7 +1592,7 @@ class TaggerWindow(QtWidgets.QMainWindow): # Abandon any further tag removals to prevent any greater damage to archive break ca.reset_cache() - ca.load_cache(list(metadata_styles)) + ca.load_cache(set(metadata_styles)) progdialog.hide() QtCore.QCoreApplication.processEvents()