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:
@ -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)
|
||||
|
Reference in New Issue
Block a user