mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Prevent multiple session refreshes from being enqueued
This commit is contained in:
parent
ef297dd8e6
commit
6d1573f901
1 changed files with 6 additions and 2 deletions
|
@ -1122,8 +1122,12 @@ void Session::prepareStartup()
|
||||||
QMetaObject::invokeMethod(this, [this, context]() { handleLoadedResumeData(context); }, Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, [this, context]() { handleLoadedResumeData(context); }, Qt::QueuedConnection);
|
||||||
context->isLoadedResumeDataHandlingEnqueued = true;
|
context->isLoadedResumeDataHandlingEnqueued = true;
|
||||||
}
|
}
|
||||||
m_nativeSession->post_torrent_updates();
|
|
||||||
m_refreshEnqueued = true;
|
if (!m_refreshEnqueued)
|
||||||
|
{
|
||||||
|
m_nativeSession->post_torrent_updates();
|
||||||
|
m_refreshEnqueued = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
context->startupStorage->loadAll();
|
context->startupStorage->loadAll();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue