mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-07 02:50:00 -04:00
Improve the message when component metadata fails to download (#3884)
This commit is contained in:
commit
be2e2ec629
@ -748,7 +748,6 @@ void ComponentUpdateTask::remoteLoadFailed(size_t taskIndex, const QString& msg)
|
||||
d->remoteLoadSuccessful = false;
|
||||
taskSlot.succeeded = false;
|
||||
taskSlot.finished = true;
|
||||
taskSlot.error = msg;
|
||||
d->remoteTasksInProgress--;
|
||||
checkIfAllFinished();
|
||||
}
|
||||
@ -769,7 +768,9 @@ void ComponentUpdateTask::checkIfAllFinished()
|
||||
QStringList allErrorsList;
|
||||
for (auto& item : d->remoteLoadStatusList) {
|
||||
if (!item.succeeded) {
|
||||
allErrorsList.append(item.error);
|
||||
const ComponentPtr component = d->m_profile->getComponent(item.PackProfileIndex);
|
||||
allErrorsList.append(tr("Could not download metadata for %1 %2. Please change the version or try again later.")
|
||||
.arg(component->getName(), component->m_version));
|
||||
}
|
||||
}
|
||||
auto allErrors = allErrorsList.join("\n");
|
||||
|
@ -15,7 +15,6 @@ struct RemoteLoadStatus {
|
||||
size_t PackProfileIndex = 0;
|
||||
bool finished = false;
|
||||
bool succeeded = false;
|
||||
QString error;
|
||||
Task::Ptr task;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user