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:
parent
433a802c6e
commit
ef87bdf18a
@ -54,7 +54,10 @@ void ProgressWidget::watch(const Task* task)
|
|||||||
connect(m_task, &Task::progress, this, &ProgressWidget::handleTaskProgress);
|
connect(m_task, &Task::progress, this, &ProgressWidget::handleTaskProgress);
|
||||||
connect(m_task, &Task::destroyed, this, &ProgressWidget::taskDestroyed);
|
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)
|
void ProgressWidget::start(const Task* task)
|
||||||
|
Loading…
Reference in New Issue
Block a user