Remove unused flags and debug print
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user