mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03: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);
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue