[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
This commit is contained in:
0penBrain
2022-02-02 16:56:55 +01:00
committed by wwmayer
parent 7ff62348df
commit 74a92dd17c

View File

@@ -61,6 +61,7 @@
#include <Gui/Application.h>
#include <Gui/Command.h>
#include <Gui/Document.h>
#include <Gui/DlgCheckableMessageBox.h>
#include <Gui/MainWindow.h>
#include <QDomDocument>
@@ -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<QFileInfo>& dirs, const QString& lockFile)