Skip to content

Commit 4cbd2e7

Browse files
committed
[ui] simplify visible/displayable status
1 parent c01aefc commit 4cbd2e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

meshroom/ui/qml/GraphEditor/Node.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Item {
274274

275275
// Submitted externally indicator
276276
MaterialLabel {
277-
visible: ["SUBMITTED", "RUNNING"].includes(node.globalStatus) && node.chunks.count > 0 && node.isExternal
277+
visible: node.isExternal
278278
text: MaterialIcons.cloud
279279
padding: 2
280280
font.pointSize: 7
@@ -327,7 +327,7 @@ Item {
327327
text: MaterialIcons.visibility
328328
padding: 2
329329
font.pointSize: 7
330-
property bool displayable: ((["SUCCESS"].includes(node.globalStatus) && node.chunks.count > 0) || !node.isComputable)
330+
property bool displayable: !node.isComputable || (node.chunks.count > 0 && (["SUCCESS"].includes(node.globalStatus)))
331331
color: displayable ? palette.text : Qt.darker(palette.text, 1.8)
332332

333333
ToolTip {

0 commit comments

Comments
 (0)