From b546ad8244b8652885d7f6cb72b98cc8f79c0225 Mon Sep 17 00:00:00 2001 From: krzywon Date: Wed, 23 Oct 2024 11:41:25 -0400 Subject: [PATCH] Do not attempt to load plugin model documentation and fall back to basic fitting help (for now) --- src/sas/qtgui/Perspectives/Fitting/FittingWidget.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py b/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py index 3942cdc4f2..ab30e94c62 100644 --- a/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py +++ b/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py @@ -1888,10 +1888,8 @@ def onHelp(self): """ Show the "Fitting" section of help """ - regen_in_progress = False help_location = self.getHelpLocation(HELP_DIRECTORY_LOCATION) - if regen_in_progress is False: - self.parent.showHelp(help_location) + self.parent.showHelp(help_location) def getHelpLocation(self, tree_base) -> Path: # Actual file will depend on the current tab @@ -1901,7 +1899,11 @@ def getHelpLocation(self, tree_base) -> Path: match tab_id: case 0: # Look at the model and if set, pull out its help page - if self.kernel_module is not None and hasattr(self.kernel_module, 'name'): + # TODO: Disable plugin model documentation generation until issues can be resolved + plugin_names = [name for name, enabled in self.master_category_dict[CATEGORY_CUSTOM]] + if (self.kernel_module is not None + and hasattr(self.kernel_module, 'name') + and self.kernel_module.id not in plugin_names): tree_location = tree_base / "user" / "models" return tree_location / f"{self.kernel_module.id}.html" else: