mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 04:16:57 +03:00
add update lock
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
64e119585d
commit
abec40af7f
26 changed files with 208 additions and 32 deletions
|
|
@ -484,7 +484,7 @@ void EnsureMetadataTask::updateMetadata(ModPlatform::IndexedPack& pack, ModPlatf
|
|||
if (ver.fileName.endsWith(".disabled"))
|
||||
ver.fileName.chop(9);
|
||||
|
||||
auto task = makeShared<LocalResourceUpdateTask>(m_indexDir, pack, ver);
|
||||
auto task = makeShared<LocalResourceUpdateTask>(m_indexDir, pack, ver, m_lockUpdate);
|
||||
|
||||
connect(task.get(), &Task::finished, this, [this, &pack, resource] { updateMetadataCallback(pack, resource); });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue