src/eric7/UI/CodeDocumentationViewer.py

branch
eric7
changeset 9966
27f2437e6eea
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/UI/CodeDocumentationViewer.py	Mon Apr 03 11:36:16 2023 +0200
+++ b/src/eric7/UI/CodeDocumentationViewer.py	Mon Apr 03 12:11:56 2023 +0200
@@ -496,3 +496,13 @@
             if index < 0:
                 index = 0
             self.providerComboBox.setCurrentIndex(index)
+
+    def isEnabled(self):
+        """
+        Public method to check, if the code documentation viewer is enabled.
+
+        @return flag indicating the enabled state
+        @rtype bool
+        """
+        provider = self.providerComboBox.currentData()
+        return provider != self.__disabledProvider

eric ide

mercurial