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:
parent
a9d4370ad4
commit
0a7383a4e1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user