Skip to content

Commit

Permalink
update task_row.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jan 1, 2024
1 parent f3446af commit 4612dce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libresvip/gui/components/task_row.qml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,12 @@ ColumnLayout {
onOk: () => {
let move_result = TaskManager.move_to_output(index)
if (move_result) {
successButton.visible = true
if (task_result.warning) {
warningLabel.text = task_result.warning
warningButton.visible = true
} else {
successButton.visible = true
}
} else {
errorButton.visible = true
}
Expand All @@ -340,7 +345,7 @@ ColumnLayout {
}
function onBusy_changed(busy) {
if (busy) {
successButton.visible = errorButton.visible = skipButton.visible = false
successButton.visible = errorButton.visible = warningButton.visible = skipButton.visible = false
runningIndicator.visible = true
} else {
runningIndicator.visible = false
Expand Down

0 comments on commit 4612dce

Please sign in to comment.