diff --git a/Wabbajack/AppState.cs b/Wabbajack/AppState.cs index a88200d9..ad12d2d7 100644 --- a/Wabbajack/AppState.cs +++ b/Wabbajack/AppState.cs @@ -72,7 +72,7 @@ namespace Wabbajack slideshowThread.Start(); } - private DateTime _lastSlideShowUpdate = new DateTime(); + public DateTime lastSlideShowUpdate = new DateTime(); public ObservableCollection Log { get; } = new ObservableCollection(); public ObservableCollection Status { get; } = new ObservableCollection(); @@ -387,12 +387,12 @@ namespace Wabbajack if (_slideShow.SlidesQueue.Any()) { - if (DateTime.Now - _lastSlideShowUpdate > TimeSpan.FromSeconds(10)) + if (DateTime.Now - lastSlideShowUpdate > TimeSpan.FromSeconds(10)) { _slideShow.UpdateSlideShowItem(); } } - Thread.Sleep(10000); + Thread.Sleep(1000); } } diff --git a/Wabbajack/UI/SlideShow.cs b/Wabbajack/UI/SlideShow.cs index 63b7d0c9..c3a9fba0 100644 --- a/Wabbajack/UI/SlideShow.cs +++ b/Wabbajack/UI/SlideShow.cs @@ -111,6 +111,8 @@ namespace Wabbajack.UI _appState._nexusSiteURL = slide.ModURL; } + _appState.lastSlideShowUpdate = DateTime.Now; + SlidesQueue.Dequeue(); QueueRandomSlide(false, true); }