fix text not in english when checkbox is True

This commit is contained in:
un-pogaz 2024-11-29 10:38:04 +01:00
parent 3e1a9ec3e7
commit 1e8b9a18fb

View File

@ -141,7 +141,7 @@ class DocViewer(Dialog):
def get_doc(self, func):
doc = func.doc if hasattr(func, 'doc') else ''
return doc.raw_text if self.english_cb.isChecked() and hasattr(doc, 'raw_text') else doc
return getattr(doc, 'formatted_english', doc) if self.english_cb.isChecked() else doc
def no_doc_string(self):
if self.english_cb.isChecked():