Merge pull request #9 from libfitz/master
Disable the option to hide main toolbar (fix #8)
This commit is contained in:
commit
074354b64a
7
main.py
7
main.py
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user