From 170476a7053abe02d920516fbd583965d2741c84 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 3 Oct 2024 23:01:12 +0100 Subject: [PATCH] Preserve hidden metadata values when reading from GUI form --- comictaggerlib/taggerwindow.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index d109715..7ad6625 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -940,6 +940,16 @@ class TaggerWindow(QtWidgets.QMainWindow): md.add_credit(name, role, bool(primary_flag)) md.pages = self.page_list_editor.get_page_list() + + # Preserve hidden md values + md.data_origin = self.metadata.data_origin + md.issue_id = self.metadata.issue_id + md.series_id = self.metadata.series_id + + md.price = self.metadata.price + md.identifier = self.metadata.identifier + md.rights = self.metadata.rights + self.metadata = md def use_filename(self) -> None: