From 8da56e56c11350da15408fc76c5bdd5487506667 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:33:43 +0100 Subject: [PATCH] Remove unused flags and debug print --- novelwriter/gui/doceditor.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index 4e2c5029..d02f01d9 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -86,11 +86,9 @@ class _SelectAction(Enum): class _TagAction(IntFlag): - NONE = 0b0000 - GOOD = 0b0001 - BAD = 0b0010 - FOLLOW = 0b0100 - CREATE = 0b1000 + NONE = 0b00 + FOLLOW = 0b01 + CREATE = 0b10 class GuiDocEditor(QPlainTextEdit): @@ -1167,7 +1165,6 @@ class GuiDocEditor(QPlainTextEdit): # Follow status = self._processTag(cursor=pCursor, follow=False) - print(status) if status & _TagAction.FOLLOW: action = ctxMenu.addAction(self.tr("Follow Tag")) action.triggered.connect(qtLambda(self._processTag, cursor=pCursor, follow=True))