Skip to content
Permalink
Browse files

Disable MainWindow toolbar context menu

This removes the default context menu on toolbars that allows them
to be shown/hidden, thereby ensuring that the the toolbar remains
visible at all times.

Closes #215
  • Loading branch information...
crwood committed Jun 7, 2019
1 parent 285283f commit bff4b3a0b43b4295bf54e6df65e3b6ed19541c54
Showing with 1 addition and 0 deletions.
  1. +1 −0 gridsync/gui/main_window.py
@@ -92,6 +92,7 @@ def __init__(self, gui):
self.setWindowTitle(APP_NAME)
self.setMinimumSize(QSize(600, 400))
self.setUnifiedTitleAndToolBarOnMac(True)
self.setContextMenuPolicy(Qt.NoContextMenu)

self.shortcut_new = QShortcut(QKeySequence.New, self)
self.shortcut_new.activated.connect(self.show_welcome_dialog)

0 comments on commit bff4b3a

Please sign in to comment.
You can’t perform that action at this time.