Revert last non working Progress bar for Windows fix
This commit is contained in:
@@ -160,10 +160,6 @@ void FlashProcess::analyseStandardOutput(const QString & text)
|
||||
int pos = (currStdoutLine.lastIndexOf("#") - 19) * 100 / 256;
|
||||
progress->setValue(pos);
|
||||
}
|
||||
else if (currStdoutLine.startsWith("[") && progress->getText().contains("bytes_per_hash=2048")) {
|
||||
int pos = (currStdoutLine.lastIndexOf("#") - 1) * 2048 * 100 / (2 * 1024 * 1024); // TODO depends on bin size
|
||||
progress->setValue(pos);
|
||||
}
|
||||
}
|
||||
|
||||
if (text.contains("Complete ")) {
|
||||
|
||||
Reference in New Issue
Block a user