From 95efda044efc981a875cbad5ab12f15d2f0d329b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 15 May 2024 15:59:29 +0200 Subject: Auto-close after 5s if job is finished --- src/gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3-55-g7522