diff options
author | Simon Rettberg | 2024-05-16 13:50:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-16 13:50:24 +0200 |
commit | 822af29bb9758435fae5aede23c78ea51bb712f6 (patch) | |
tree | faddbf5c146db516c8e06d0dc44b46ade9546c0f /src | |
parent | Auto-close after 5s if job is finished (diff) | |
download | cowgui-822af29bb9758435fae5aede23c78ea51bb712f6.tar.gz cowgui-822af29bb9758435fae5aede23c78ea51bb712f6.tar.xz cowgui-822af29bb9758435fae5aede23c78ea51bb712f6.zip |
Force 100% upload display on UPLOAD_DONE to avoid confusion
Diffstat (limited to 'src')
-rw-r--r-- | src/gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index a36930e..49dbe17 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -48,7 +48,7 @@ Gui::Gui(const QString &urlbase, const QString &uuid, int dnbd3pid, const QStrin _tmrStatus->start(2500); QObject::connect(_tmrStatus, &QTimer::timeout, [this]() { Gui::queryRemoteStatus(); - if (_remoteState == STATE_WAITING_FOR_UPLOAD_DONE || _remoteState == STATE_PROCESSING) { + if (_remoteState == STATE_WAITING_FOR_UPLOAD_DONE) { Gui::readDnbd3Status(); } }); @@ -201,6 +201,7 @@ void Gui::updateButtons() _btnOk->setEnabled(true); _btnOk->setText(tr("Schließen")); } else if (_remoteState == STATE_UPLOAD_DONE) { + setProgressState(tr("Änderungen hochladen"), 100, QString()); _btnAbort->setEnabled(true); _btnOk->setEnabled(true); } else if (_remoteState == STATE_ERROR) { |