mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 11:56:57 +03:00
small fixes
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
f67a670bcf
commit
64e119585d
1 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ void BaseEntityLoadTask::executeTask()
|
|||
}
|
||||
|
||||
} catch (const Exception& e) {
|
||||
qDebug() << QString("Unable to parse file %1: %2").arg(fname, e.cause());
|
||||
qCritical() << QString("Unable to parse file %1: %2").arg(fname, e.cause());
|
||||
// just make sure it's gone and we never consider it again.
|
||||
FS::deletePath(fname);
|
||||
m_entity->m_load_status = BaseEntity::LoadStatus::NotLoaded;
|
||||
|
|
@ -177,10 +177,10 @@ void BaseEntityLoadTask::executeTask()
|
|||
m_task->addNetAction(dl);
|
||||
m_task->setAskRetry(false);
|
||||
connect(m_task.get(), &Task::failed, this, &BaseEntityLoadTask::emitFailed);
|
||||
connect(m_task.get(), &Task::succeeded, this, &BaseEntityLoadTask::emitSucceeded);
|
||||
connect(m_task.get(), &Task::succeeded, this, [this]() {
|
||||
m_entity->m_load_status = BaseEntity::LoadStatus::Remote;
|
||||
m_entity->m_file_sha256 = m_entity->m_sha256;
|
||||
emitSucceeded();
|
||||
});
|
||||
|
||||
connect(m_task.get(), &Task::progress, this, &Task::setProgress);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue