From a7f7efa470896c618b17861bbf6d9363e1954ba3 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Sun, 4 Oct 2020 09:57:51 +0200 Subject: [PATCH] fixed terminal visibility for perspective widget --- pype/tools/pyblish_pype/window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pype/tools/pyblish_pype/window.py b/pype/tools/pyblish_pype/window.py index 0365962dc2..9c22e41c43 100644 --- a/pype/tools/pyblish_pype/window.py +++ b/pype/tools/pyblish_pype/window.py @@ -720,10 +720,14 @@ class Window(QtWidgets.QDialog): ): target = self.state["current_page"] comment_visibility = ( - not target == "terminal" + not self.perspective_widget.isVisible() + and not target == "terminal" and self.comment_box.isEnabled() ) - terminal_filters_visibility = target == "terminal" + terminal_filters_visibility = ( + target == "terminal" + or self.perspective_widget.isVisible() + ) if comment_visible is not None and comment_visibility: comment_visibility = comment_visible