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 committed 2023-01-13 16:23:06 -03:00
1 parent 433a802c6e
commit ef87bdf18a
1 file changed
+4 -1
+4 -1
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);
show();
if (m_task->isRunning())
show();
else
connect(m_task, &Task::started, this, &ProgressWidget::show);
}
void ProgressWidget::start(const Task* task)