Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Jan 21, 2025
1 parent 262f5ed commit 6f3ed7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/LunaTranslator/rendertext/textbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def __init__(self, parent) -> None:
self.textbrowser.setHorizontalScrollBarPolicy(
Qt.ScrollBarPolicy.ScrollBarAlwaysOff
)
self.customContextMenuRequested.connect(self.menunoselect)
self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
self.masklabel = QLabel(self.textbrowser)
self.masklabel.setMouseTracking(True)
self.masklabel.customContextMenuRequested.connect(self.menunoselect)
Expand Down

0 comments on commit 6f3ed7c

Please sign in to comment.