Skip to content

Commit

Permalink
Don't run through install flow if there's no mod to install
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett committed May 10, 2021
1 parent ac7898f commit eec22f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Core/ModuleInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ public void InstallList(List<string> modules, RelationshipResolverOptions option
public void InstallList(ICollection<CkanModule> modules, RelationshipResolverOptions options, RegistryManager registry_manager, ref HashSet<string> 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<CkanModule> downloads = new List<CkanModule>();
Expand Down

0 comments on commit eec22f2

Please sign in to comment.