Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrK39 committed Sep 2, 2023
1 parent 41fbe13 commit d674b75
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Hydrus Slideshow/ViewModels/SlideshowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
using Hydrus_Slideshow.Models;
using Hydrus_Slideshow.Services;
using Hydrus_Slideshow.Utils;
using PreferenceManagerLibrary.Manager;
using PreferenceManagerLibrary.Preferences;
using static Hydrus_Slideshow.Models.HydrusClient;
using Timer = System.Timers.Timer;

Expand All @@ -27,8 +25,8 @@ public partial class SlideshowViewModel
private readonly INotificationService notificationService;
private readonly Dispatcher dispatcher;

private HydrusClient hydrus;
private CircularEnumerator<SimpleHydrusFile>? enumerator;
private readonly HydrusClient hydrus;
private CircularEnumerator<SimpleHydrusFile> enumerator;

private Timer timer;
private Timer timeUpdateTimer;
Expand Down Expand Up @@ -65,10 +63,11 @@ public SlideshowViewModel(IConfigService configService, IErrorDialogService erro
}
private async void Initialise()
{
var r = new Random();
var tags = new[] { $"system:limit={1000}", "system:filetype=image" };
tags = tags.Concat(configService.HydrusQuerry.Split(new[] { ", " }, StringSplitOptions.None)).ToArray();
var tags = configService.HydrusQuerry.Split(new[] { ", " }, StringSplitOptions.None)
.Concat( new[] { $"system:limit={1000}", "system:filetype=image" })
.ToArray();

// fetch images
List<SimpleHydrusFile> coll;
try
{
Expand Down

0 comments on commit d674b75

Please sign in to comment.