fix: hide ProgressDialog when failing/succeeding tasks

WHY IS QT LIKE THAT AAAAAAAA

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-10-20 16:54:39 -03:00
parent a9d4370ad4
commit 0a7383a4e1
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -136,11 +136,13 @@ void ProgressDialog::onTaskStarted() {}
void ProgressDialog::onTaskFailed(QString failure) void ProgressDialog::onTaskFailed(QString failure)
{ {
reject(); reject();
hide();
} }
void ProgressDialog::onTaskSucceeded() void ProgressDialog::onTaskSucceeded()
{ {
accept(); accept();
hide();
} }
void ProgressDialog::changeStatus(const QString& status) void ProgressDialog::changeStatus(const QString& status)