Skip to content

Commit

Permalink
Fix tool bar can be right-clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
chillpert committed Feb 5, 2024
1 parent 377f7bc commit a2a4dc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def _create_tool_bar_widget(self):
tool_bar_widget = QToolBar()
tool_bar_widget.setFloatable(False)
tool_bar_widget.setMovable(False)
tool_bar_widget.setContextMenuPolicy(Qt.PreventContextMenu)

# Disable the toolbar widget by default
tool_bar_widget.setEnabled(False)
Expand Down

0 comments on commit a2a4dc1

Please sign in to comment.