fix(RD): prevent weird behavior of progress widget

when i.e. clicking on links or just using the downloader at all, this
prevents some flickering and the widget never getting hidden in some
cases.

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-12-16 20:19:33 -03:00
parent 433a802c6e
commit ef87bdf18a
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -54,7 +54,10 @@ void ProgressWidget::watch(const Task* task)
connect(m_task, &Task::progress, this, &ProgressWidget::handleTaskProgress);
connect(m_task, &Task::destroyed, this, &ProgressWidget::taskDestroyed);
if (m_task->isRunning())
show();
else
connect(m_task, &Task::started, this, &ProgressWidget::show);
}
void ProgressWidget::start(const Task* task)