Commit 9dd95e19 authored by Kurt Hindenburg's avatar Kurt Hindenburg

While zmodem transferring, show dialog progress updates less frequently

parent 8b6be52b
......@@ -1351,12 +1351,17 @@ void Session::zmodemReadStatus()
void Session::zmodemReceiveBlock(const char* data, int len)
{
static int steps = 0;
QByteArray bytes(data, len);
_zmodemProc->write(bytes);
// Provide some feedback to dialog
_zmodemProgress->addProgressText(QStringLiteral("."));
if (steps > 100) {
_zmodemProgress->addProgressText(QStringLiteral("."));
steps = 0;
}
steps++;
}
void Session::zmodemFinished()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment