From eec22f292d03fd1162a239e1ceb8506039e4887e Mon Sep 17 00:00:00 2001 From: DasSkelett Date: Mon, 10 May 2021 16:56:39 +0200 Subject: [PATCH] Don't run through install flow if there's no mod to install --- Core/ModuleInstaller.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/ModuleInstaller.cs b/Core/ModuleInstaller.cs index 59c7b49bb8..27282c8180 100644 --- a/Core/ModuleInstaller.cs +++ b/Core/ModuleInstaller.cs @@ -134,6 +134,11 @@ public void InstallList(List modules, RelationshipResolverOptions option public void InstallList(ICollection modules, RelationshipResolverOptions options, RegistryManager registry_manager, ref HashSet possibleConfigOnlyDirs, IDownloader downloader = null, bool ConfirmPrompt = true) { // TODO: Break this up into smaller pieces! It's huge! + if (modules.Count == 0) + { + User.RaiseProgress("Nothing to install.", 100); + return; + } var resolver = new RelationshipResolver(modules, null, options, registry_manager.registry, ksp.VersionCriteria()); var modsToInstall = resolver.ModList().ToList(); List downloads = new List();