diff options
author | bolli24 <4827765-bolli24@users.noreply.gitlab.com> | 2023-09-22 21:10:27 +0200 |
---|---|---|
committer | bolli24 <4827765-bolli24@users.noreply.gitlab.com> | 2023-09-22 21:36:19 +0200 |
commit | f3c089792a5342eeff93f032dca134fe371db4b3 (patch) | |
tree | bcaf3f0faafba6f6a11777421ad5f8c02df30289 /launcher | |
parent | 98bc102f5bec14b38c684c219989fc3953dc2f49 (diff) | |
download | PrismLauncher-f3c089792a5342eeff93f032dca134fe371db4b3.tar.gz PrismLauncher-f3c089792a5342eeff93f032dca134fe371db4b3.tar.bz2 PrismLauncher-f3c089792a5342eeff93f032dca134fe371db4b3.zip |
Skip folders when updating mods.
Previously the mod updater would fail, reporting "The mod updater was aborted!", when trying to update a folder.
Signed-off-by: bolli24 <4827765-bolli24@users.noreply.gitlab.com>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/ui/dialogs/ModUpdateDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ModUpdateDialog.cpp b/launcher/ui/dialogs/ModUpdateDialog.cpp index 1f0fa7cd..cd115bd3 100644 --- a/launcher/ui/dialogs/ModUpdateDialog.cpp +++ b/launcher/ui/dialogs/ModUpdateDialog.cpp @@ -236,6 +236,11 @@ auto ModUpdateDialog::ensureMetadata() -> bool if (skip_rest) continue; + if (candidate->type() == ResourceType::FOLDER) { + m_failed_metadata.append({ candidate, tr("This is a folder.") }); + continue; + } + if (confirm_rest) { addToTmp(candidate, provider_rest); should_try_others.insert(candidate->internal_id(), try_others_rest); |