From cd6739763c326a888dd1bef7e069340f29f7bc3a Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:21:41 +0200 Subject: [PATCH] fix hiding details --- .../ayon_core/tools/publisher/widgets/report_page.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/tools/publisher/widgets/report_page.py b/client/ayon_core/tools/publisher/widgets/report_page.py index f63b58eab2..e9fbd13808 100644 --- a/client/ayon_core/tools/publisher/widgets/report_page.py +++ b/client/ayon_core/tools/publisher/widgets/report_page.py @@ -1486,12 +1486,18 @@ class ErrorDetailWidget(QtWidgets.QWidget): error_detail_top.clicked.connect(self._on_detail_toggle) - error_detail_input.setVisible(not error_detail_expand_btn.collapsed) - self._error_detail_top = error_detail_top self._error_detail_expand_btn = error_detail_expand_btn self._error_detail_input = error_detail_input + def showEvent(self, event): + super().showEvent(event) + # Calling this in __init__ does not seem to propagate the visibility + # correctly + self._error_detail_input.setVisible( + not self._error_detail_expand_btn.collapsed + ) + def set_detail(self, detail): if not detail: self._set_visible_inputs(False)