/// <summary> /// Ignores the mods. /// </summary> protected async Task IgnoreModsAsync() { await Task.Delay(100); var mods = Mods.Except(SelectedMods).ToList(); modPatchCollectionService.AddModsToIgnoreList(ConflictResult, mods); if (previousIgnoredPath == null) { previousIgnoredPath = string.Empty; } if (previousIgnoredPath.Equals(ConflictResult.IgnoredPaths ?? string.Empty)) { syncingSelectedMods = false; return; } await modPatchCollectionService.SaveIgnoredPathsAsync(ConflictResult, collectionName); previousIgnoredPath = ConflictResult.IgnoredPaths; HasSavedState = true; syncingSelectedMods = false; HasSavedState = false; }