Merge pull request #506 from daemitus/filterRepos

Filter disabled repos when retrieving repos from the settings window
This commit is contained in:
goaaats 2021-08-27 23:19:27 +02:00 committed by GitHub
commit 52003a07e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,6 +148,7 @@ namespace Dalamud.Plugin.Internal
var repos = new List<PluginRepository>() { PluginRepository.MainRepo };
repos.AddRange(configuration.ThirdRepoList
.Where(repo => repo.IsEnabled)
.Select(repo => new PluginRepository(repo.Url, repo.IsEnabled)));
this.Repos = repos;