diff --git a/Tools/HolocronToolset/src/toolset/gui/windows/help.py b/Tools/HolocronToolset/src/toolset/gui/windows/help.py index 94d442471..65a4e4149 100644 --- a/Tools/HolocronToolset/src/toolset/gui/windows/help.py +++ b/Tools/HolocronToolset/src/toolset/gui/windows/help.py @@ -38,14 +38,16 @@ def __init__(self, parent: QWidget | None, startingPage: str | None = None): self.ui.setupUi(self) self._setupSignals() self._setupContents() + self.startingPage: str | None = startingPage + def showEvent(self, a0): self.ui.textDisplay.setSearchPaths(["./help"]) if self.ENABLE_UPDATES: self.checkForUpdates() - if startingPage: - self.displayFile(startingPage) + if self.startingPage is not None: + self.displayFile(self.startingPage) def _setupSignals(self): self.ui.contentsTree.clicked.connect(self.onContentsClicked)