diff options
author | Simon Rettberg | 2024-05-15 15:59:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-15 15:59:29 +0200 |
commit | 95efda044efc981a875cbad5ab12f15d2f0d329b (patch) | |
tree | 177be39afbebe45a899a00ac62c885b1accff11c | |
parent | Show progress of upload by reading status.txt from dnbd3-fuse (diff) | |
download | cowgui-95efda044efc981a875cbad5ab12f15d2f0d329b.tar.gz cowgui-95efda044efc981a875cbad5ab12f15d2f0d329b.tar.xz cowgui-95efda044efc981a875cbad5ab12f15d2f0d329b.zip |
Auto-close after 5s if job is finished
-rw-r--r-- | src/gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index aad42da..a36930e 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -192,6 +192,10 @@ void Gui::updateButtons() if (_remoteState == STATE_COMPLETELY_DONE || _remoteState == STATE_PROCESSING) { if (_remoteState == STATE_COMPLETELY_DONE) { _tmrStatus->stop(); + QTimer::singleShot(5000, [this]() { + _allowClose = true; + this->close(); + }); } _btnAbort->setEnabled(false); _btnOk->setEnabled(true); |