Disable the option to hide main toolbar

This commit is contained in:
libfitz 2024-09-24 16:56:40 +03:00
parent 0eda4eff17
commit acf8d700a4

View File

@ -229,6 +229,13 @@ class DockerGUI(QMainWindow):
self.create_volume_action.setVisible(True) self.create_volume_action.setVisible(True)
self.remove_volume_action.setVisible(True) self.remove_volume_action.setVisible(True)
# override QMainWindow.createPopupMenu
def createPopupMenu(self):
filtered_menu = super(DockerGUI, self).createPopupMenu()
filtered_menu.removeAction(self.toolbar.toggleViewAction())
return filtered_menu
def update_visible_tabs(self, index): def update_visible_tabs(self, index):
for i in range(self.tab_widget.count()): for i in range(self.tab_widget.count()):
if i == index: if i == index: