diff --git a/Nekos/Pages/Index.razor b/Nekos/Pages/Index.razor index f910426..871b8aa 100644 --- a/Nekos/Pages/Index.razor +++ b/Nekos/Pages/Index.razor @@ -176,10 +176,7 @@ PreloadImageUrl2 = PreloadImageUrl1!.Next; StateHasChanged(); await _console.LogAsync($"Current image ID: {Image.Value.Id}"); - if (Image != null && _images.Count - _images.FindIndex(x => x.Equals(Image.Value)) < 20) - { - await LoadImages(); - } + if (Image != null && _images.Count - _images.FindIndex(x => x.Equals(Image.Value)) < 20) await LoadImages(); } } @@ -194,9 +191,9 @@ private async Task LoadImages() { await _console.LogAsync("Loading new images in queue..."); - var images = await _nekoClient.ImagesAsync(rating: ["explicit"], tag: [8], limit: 25, is_screenshot:false); + var images = await _nekoClient.ImagesAsync(rating: ["explicit"], tag: [8], is_screenshot:false); foreach (var image in images.Items) if (!_images.Any(x => x.Id.Equals(image.Id))) _images.AddLast(image); - await _console.LogAsync("Image loading finished."); + await _console.LogAsync($"Image loading finished. Total images in list: {_images.Count}"); } ///