From 09ea531a90c9440e7f084cc7afa3e8828d924478 Mon Sep 17 00:00:00 2001 From: Michael Fitzurka Date: Mon, 23 May 2022 09:46:46 -0400 Subject: [PATCH 1/2] Fixing double page always flagging as modified --- comictaggerlib/pagelisteditor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index 4729602..70b6266 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -273,10 +273,12 @@ class PageListEditor(QtWidgets.QWidget): cbx = self.sender() if isinstance(cbx, QtWidgets.QCheckBox) and cbx.isChecked(): - page_dict["DoublePage"] = True + if "DoublePage" not in page_dict: + page_dict["DoublePage"] = True + self.modified.emit() elif "DoublePage" in page_dict: del page_dict["DoublePage"] - self.modified.emit() + self.modified.emit() item = self.listWidget.item(row) # wrap the dict in a tuple to keep from being converted to QStrings From 7e772abda76a03a5c0de97434ac8b18c147091e3 Mon Sep 17 00:00:00 2001 From: Michael Fitzurka Date: Tue, 24 May 2022 10:25:44 -0400 Subject: [PATCH 2/2] Toggled to Clicked --- comictaggerlib/pagelisteditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index 70b6266..1066d72 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -97,7 +97,7 @@ class PageListEditor(QtWidgets.QWidget): self.listWidget.itemSelectionChanged.connect(self.change_page) item_move_events(self.listWidget).connect(self.item_move_event) self.cbPageType.activated.connect(self.change_page_type) - self.chkDoublePage.toggled.connect(self.toggle_double_page) + self.chkDoublePage.clicked.connect(self.toggle_double_page) self.leBookmark.editingFinished.connect(self.save_bookmark) self.btnUp.clicked.connect(self.move_current_up) self.btnDown.clicked.connect(self.move_current_down)