From b0d8f49afbbff5b8f3bf7acc4e8a8d35fccb6d33 Mon Sep 17 00:00:00 2001 From: Benjamin Auquite Date: Fri, 15 Mar 2024 19:05:24 -0500 Subject: [PATCH] Fix helpwindow not having icon --- Tools/HolocronToolset/src/toolset/gui/windows/help.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)