Added an action menu entry to show the configuration dialog with the help documents page. eric7

Tue, 02 Nov 2021 17:59:27 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 02 Nov 2021 17:59:27 +0100
branch
eric7
changeset 8756
8bea096a0f24
parent 8755
30f52c9d5153
child 8757
23b2fe1cd863

Added an action menu entry to show the configuration dialog with the help documents page.

eric7/HelpViewer/HelpViewerWidget.py file | annotate | diff | comparison | revisions
diff -r 30f52c9d5153 -r 8bea096a0f24 eric7/HelpViewer/HelpViewerWidget.py
--- a/eric7/HelpViewer/HelpViewerWidget.py	Mon Nov 01 19:45:18 2021 +0100
+++ b/eric7/HelpViewer/HelpViewerWidget.py	Tue Nov 02 17:59:27 2021 +0100
@@ -705,6 +705,10 @@
         self.__actionsMenu.addAction(
             self.tr("Reindex Documentation"),
             self.__helpSearchEngine.reindexDocumentation)
+        self.__actionsMenu.addSeparator()
+        self.__actionsMenu.addAction(
+            self.tr("Configure Help Documentation"),
+            self.__configureHelpDocumentation)
         
         self.__actionsButton.setMenu(self.__actionsMenu)
     
@@ -720,6 +724,13 @@
             self.__helpEngine, self)
         dlg.exec()
     
+    @pyqtSlot()
+    def __configureHelpDocumentation(self):
+        """
+        Private slot to open the Help Documentation configuration page.
+        """
+        self.__ui.showPreferences("helpDocumentationPage")
+    
     #######################################################################
     ## Navigation related methods below
     #######################################################################

eric ide

mercurial