Skip to content

Commit

Permalink
[Mobile UI] Reset the progress bar on failed file transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Oct 13, 2024
1 parent 5744906 commit 49b2b69
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qml/ConfigPageFileTransfer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ ColumnLayout {
Connections {
target: Emu
function onUsblinkProgressChanged(percent) {
if(percent < 0)
if(percent < 0) {
transferStatus.text = qsTr("Failed!");
else
{
transferProgress.value = 0;
transferProgress.indeterminate = false;
} else {
transferStatus.text = (percent >= 100) ? qsTr("Done!") : (percent + "%");
transferProgress.value = percent;
transferProgress.indeterminate = false;
Expand Down

0 comments on commit 49b2b69

Please sign in to comment.