mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix hiding details
This commit is contained in:
parent
82ac6b332c
commit
cd6739763c
1 changed files with 8 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue