Skip to content

Commit 22ae573

Browse files
committed
[ui] Application: Update state of the global "Submit" icon when needed
1 parent 4764d71 commit 22ae573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meshroom/ui/qml/Application.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,17 +1040,17 @@ Page {
10401040
font.pointSize: 18
10411041

10421042
visible: _reconstruction ? _reconstruction.canSubmit : false
1043-
text: MaterialIcons.rocket_launch
1043+
text: !(_reconstruction.computingExternally) ? MaterialIcons.rocket_launch : MaterialIcons.paragliding
10441044

1045-
ToolTip.text: "Submit on Render Farm"
1045+
ToolTip.text: !(_reconstruction.computingExternally) ? "Submit on Render Farm" : "Interrupt Job"
10461046
ToolTip.visible: hovered
10471047

10481048
background: Rectangle {
10491049
color: submitButton.hovered ? activePalette.highlight : Qt.darker(activePalette.window, 1.15)
10501050
border.color: Qt.darker(activePalette.window, 1.15)
10511051
}
10521052

1053-
onClicked: computeManager.submit(null)
1053+
onClicked: !(_reconstruction.computingExternally) ? computeManager.submit(null) : _reconstruction.stopExecution()
10541054
}
10551055
}
10561056

0 commit comments

Comments
 (0)