From f45231c6624a2cfac10457811554d94026ee0962 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Thu, 27 Mar 2025 19:12:51 -0700 Subject: [PATCH] Fix enabling original hash widgets --- comictaggerlib/taggerwindow.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index 78f5954..4b75e9c 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -449,7 +449,12 @@ class TaggerWindow(QtWidgets.QMainWindow): def toggle_enable_embedding_hashes(self) -> None: self.config[0].Runtime_Options__enable_embedding_hashes = self.actionEnableEmbeddingHashes.isChecked() - enable_widget(self.md_attributes["original_hash"], self.config[0].Runtime_Options__enable_embedding_hashes) + enabled_widgets = set() + for tag_id in self.selected_write_tags: + if not tags[tag_id].enabled: + continue + enabled_widgets.update(tags[tag_id].supported_attributes) + enable_widget(self.md_attributes["original_hash"], self.config[0].Runtime_Options__enable_embedding_hashes and 'original_hash' in enabled_widgets) if not self.leOriginalHash.text().strip(): self.cbHashName.setCurrentText(self.config[0].internal__embedded_hash_type) if self.config[0].Runtime_Options__enable_embedding_hashes: