feat: add hashing tasks to the sequential task in ModUpdateDialog
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
e6f2a3893a
commit
00520b6a0e
@ -270,6 +270,10 @@ auto ModUpdateDialog::ensureMetadata() -> bool
|
|||||||
connect(modrinth_task, &EnsureMetadataTask::metadataFailed, [this, &should_try_others](Mod* candidate) {
|
connect(modrinth_task, &EnsureMetadataTask::metadataFailed, [this, &should_try_others](Mod* candidate) {
|
||||||
onMetadataFailed(candidate, should_try_others.find(candidate->internal_id()).value(), ModPlatform::Provider::MODRINTH);
|
onMetadataFailed(candidate, should_try_others.find(candidate->internal_id()).value(), ModPlatform::Provider::MODRINTH);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (modrinth_task->getHashingTask())
|
||||||
|
seq.addTask(modrinth_task->getHashingTask());
|
||||||
|
|
||||||
seq.addTask(modrinth_task);
|
seq.addTask(modrinth_task);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,6 +283,10 @@ auto ModUpdateDialog::ensureMetadata() -> bool
|
|||||||
connect(flame_task, &EnsureMetadataTask::metadataFailed, [this, &should_try_others](Mod* candidate) {
|
connect(flame_task, &EnsureMetadataTask::metadataFailed, [this, &should_try_others](Mod* candidate) {
|
||||||
onMetadataFailed(candidate, should_try_others.find(candidate->internal_id()).value(), ModPlatform::Provider::FLAME);
|
onMetadataFailed(candidate, should_try_others.find(candidate->internal_id()).value(), ModPlatform::Provider::FLAME);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (flame_task->getHashingTask())
|
||||||
|
seq.addTask(flame_task->getHashingTask());
|
||||||
|
|
||||||
seq.addTask(flame_task);
|
seq.addTask(flame_task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user