mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 11:26:59 +03:00
suppoer non mods deps
fixes #3962 Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
245ff2b555
commit
2e45d135c5
17 changed files with 282 additions and 205 deletions
|
|
@ -183,7 +183,7 @@ void ResourceUpdateDialog::checkCandidates()
|
|||
ScrollMessageBox messageDialog(m_parent, tr("Failed to check for updates"),
|
||||
tr("Could not check or get the following resources for updates:<br>"
|
||||
"Do you wish to proceed without those resources?"),
|
||||
text, "Disable unavailable mods");
|
||||
text, tr("Disable unavailable mods"));
|
||||
messageDialog.setModal(true);
|
||||
if (messageDialog.exec() == QDialog::Rejected) {
|
||||
m_aborted = true;
|
||||
|
|
@ -244,10 +244,10 @@ void ResourceUpdateDialog::checkCandidates()
|
|||
auto extraInfo = dependencyExtraInfo.value(dep->version.addonId.toString());
|
||||
CheckUpdateTask::Update updatable = {
|
||||
dep->pack->name, dep->version.hash, tr("Not installed"), dep->version.version, dep->version.version_type,
|
||||
changelog, dep->pack->provider, downloadTask, !extraInfo.maybe_installed
|
||||
changelog, dep->pack->provider, downloadTask, !extraInfo.maybeInstalled,
|
||||
};
|
||||
|
||||
appendResource(updatable, extraInfo.required_by);
|
||||
appendResource(updatable, extraInfo.requiredBy);
|
||||
m_tasks.insert(updatable.name, updatable.download);
|
||||
}
|
||||
}
|
||||
|
|
@ -517,7 +517,7 @@ void ResourceUpdateDialog::appendResource(const CheckUpdateTask::Update& info, Q
|
|||
ui->modTreeWidget->addTopLevelItem(itemTop);
|
||||
}
|
||||
|
||||
auto ResourceUpdateDialog::getTasks() -> const QList<ResourceDownloadTask::Ptr>
|
||||
auto ResourceUpdateDialog::getTasks() const -> QList<ResourceDownloadTask::Ptr>
|
||||
{
|
||||
QList<ResourceDownloadTask::Ptr> list;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue