Remove unused flags and debug print

This commit is contained in:
Veronica Berglyd Olsen
2025-01-30 17:33:43 +01:00
parent f83e9d8c87
commit 8da56e56c1
+3 -6
View File
@@ -86,11 +86,9 @@ class _SelectAction(Enum):
class _TagAction(IntFlag): class _TagAction(IntFlag):
NONE = 0b0000 NONE = 0b00
GOOD = 0b0001 FOLLOW = 0b01
BAD = 0b0010 CREATE = 0b10
FOLLOW = 0b0100
CREATE = 0b1000
class GuiDocEditor(QPlainTextEdit): class GuiDocEditor(QPlainTextEdit):
@@ -1167,7 +1165,6 @@ class GuiDocEditor(QPlainTextEdit):
# Follow # Follow
status = self._processTag(cursor=pCursor, follow=False) status = self._processTag(cursor=pCursor, follow=False)
print(status)
if status & _TagAction.FOLLOW: if status & _TagAction.FOLLOW:
action = ctxMenu.addAction(self.tr("Follow Tag")) action = ctxMenu.addAction(self.tr("Follow Tag"))
action.triggered.connect(qtLambda(self._processTag, cursor=pCursor, follow=True)) action.triggered.connect(qtLambda(self._processTag, cursor=pCursor, follow=True))