From 74a92dd17cef4d7014c30434250e1fde416e931d Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Wed, 2 Feb 2022 16:56:55 +0100 Subject: [PATCH] [Gui] Decrease click number on recovery transient deletion If 'cleanup' is choosen, recovery dialog is automatically close after deletion User can "Don't show again" on the 'operation finished' message box --- src/Gui/DocumentRecovery.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/DocumentRecovery.cpp b/src/Gui/DocumentRecovery.cpp index ac30809f5b..1e661da01c 100644 --- a/src/Gui/DocumentRecovery.cpp +++ b/src/Gui/DocumentRecovery.cpp @@ -61,6 +61,7 @@ #include #include #include +#include #include #include @@ -559,7 +560,8 @@ void DocumentRecovery::on_buttonCleanup_clicked() DocumentRecoveryHandler handler; handler.checkForPreviousCrashes(std::bind(&DocumentRecovery::cleanup, this, sp::_1, sp::_2, sp::_3)); - QMessageBox::information(this, tr("Finished"), tr("Transient directories deleted.")); + DlgCheckableMessageBox::showMessage(tr("Transient deleted"), tr("Transient directories deleted.")); + reject(); } void DocumentRecovery::cleanup(QDir& tmp, const QList& dirs, const QString& lockFile)