From abd3ed522527e0764c78f148bede8c844bdcb006 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Tue, 4 Jun 2024 13:29:34 +0400 Subject: [PATCH] ContentManagerView is updated once per second --- src/contentmanagerview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/contentmanagerview.cpp b/src/contentmanagerview.cpp index 11bcbb7..6e29e18 100644 --- a/src/contentmanagerview.cpp +++ b/src/contentmanagerview.cpp @@ -22,6 +22,12 @@ ContentManagerView::ContentManagerView(QWidget *parent) connect(mp_ui->m_view, &QTreeView::clicked, this, &ContentManagerView::onClicked); connect(mp_ui->m_view, &QTreeView::expanded, this, &ContentManagerView::onExpanded); connect(this, &ContentManagerView::sizeHintChanged, managerDelegate, &QStyledItemDelegate::sizeHintChanged); + + // Needed to reveal the situation with downloads not being updated timely + // (due to aria2c becoming unresponsive when saving to slow storage) + QTimer *timer = new QTimer(this); + connect(timer, &QTimer::timeout, [this]() { this->update(); }); + timer->start(1000); } ContentManagerView::~ContentManagerView()