Added Valid check to out of date mod Validation

This commit is contained in:
Brett Hewitson 2021-12-20 15:32:03 +10:00
parent b7c5d591fc
commit d6c72d225e
6 changed files with 54 additions and 6 deletions

View file

@ -351,7 +351,7 @@ namespace ServerManagerTool.Lib
var modsRootFolder = Path.Combine(this.ProfileSnapshot.InstallDirectory, Config.Default.ServerModsRelativePath);
var modDetails = ModDetailList.GetModDetails(modIdList, modsRootFolder, null, response);
outOfdateModCount = modDetails.Count(m => !m.UpToDate);
outOfdateModCount = modDetails.Count(m => m.IsValid && !m.UpToDate);
}
if (outOfdateModCount > 0 && this.OutOfDateModCount != outOfdateModCount && !string.IsNullOrWhiteSpace(Config.Default.Alert_ModUpdateDetected))