Removed view comments toggle from the menu, as it is in preferences now
This commit is contained in:
@@ -114,11 +114,6 @@ class GuiMainMenu(QMenuBar):
|
||||
self.theProject.setAutoOutline(theMode)
|
||||
return True
|
||||
|
||||
def _toggleViewComments(self):
|
||||
self.mainConf.setViewComments(self.aViewDocComments.isChecked())
|
||||
self.theParent.docViewer.reloadText()
|
||||
return True
|
||||
|
||||
def _showAbout(self):
|
||||
"""Show the about dialog.
|
||||
"""
|
||||
@@ -314,14 +309,6 @@ class GuiMainMenu(QMenuBar):
|
||||
self.aCloseView.triggered.connect(self.theParent.closeDocViewer)
|
||||
self.docuMenu.addAction(self.aCloseView)
|
||||
|
||||
# Document > Toggle View Comments
|
||||
self.aViewDocComments = QAction("Show Comments", self)
|
||||
self.aViewDocComments.setStatusTip("Show comments in view panel")
|
||||
self.aViewDocComments.setCheckable(True)
|
||||
self.aViewDocComments.setChecked(self.mainConf.viewComments)
|
||||
self.aViewDocComments.toggled.connect(self._toggleViewComments)
|
||||
self.docuMenu.addAction(self.aViewDocComments)
|
||||
|
||||
# Document > Separator
|
||||
self.docuMenu.addSeparator()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user