Skip to content

Commit

Permalink
Merge pull request #1014 from jbellister-slac/menu
Browse files Browse the repository at this point in the history
FIX: Fix menu actions to not display properly when not present
  • Loading branch information
YektaY authored Jul 19, 2023
2 parents 29d6b5c + 8e89613 commit b3aceb4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pydm/pydm_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ def setupUi(self, MainWindow):
self.actionQuit.setEnabled(True)
self.actionQuit.setObjectName("actionQuit")
self.actionSave = QtWidgets.QAction(MainWindow)
self.actionSave.setEnabled(False)
self.actionSave.setShortcutContext(QtCore.Qt.WindowShortcut)
self.actionSave.setObjectName("actionSave")
self.actionSave.setObjectName('actionSave')
self.actionSave.setVisible(False)
self.actionSave_As = QtWidgets.QAction(MainWindow)
self.actionSave_As.setEnabled(False)
self.actionSave_As.setObjectName("actionSave_As")
self.actionSave_As.setObjectName('actionSave_As')
self.actionSave_As.setVisible(False)
self.actionLoad = QtWidgets.QAction(MainWindow)
self.actionLoad.setEnabled(False)
self.actionLoad.setObjectName("actionLoad")
self.actionLoad.setObjectName('actionLoad')
self.actionLoad.setVisible(False)
self.actionChange_Stylesheet = QtWidgets.QAction(MainWindow)
self.actionChange_Stylesheet.setObjectName("actionChange_Stylesheet")
self.menuFile.addAction(self.actionOpen_File)
Expand All @@ -124,10 +123,10 @@ def setupUi(self, MainWindow):
self.menuFile.addAction(self.actionReload_Display)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionAbout_PyDM)
self.menuFile.addAction(self.actionQuit)
self.menuFile.addAction(self.actionSave)
self.menuFile.addAction(self.actionSave_As)
self.menuFile.addAction(self.actionLoad)
self.menuFile.addAction(self.actionQuit)
self.menuView.addAction(self.actionEnter_Fullscreen)
self.menuView.addAction(self.actionIncrease_Font_Size)
self.menuView.addAction(self.actionDecrease_Font_Size)
Expand Down

0 comments on commit b3aceb4

Please sign in to comment.