Auto-scroll process queue

This commit is contained in:
MBucari
2025-12-29 19:36:15 -07:00
parent 31087c0855
commit 29a5c943cb
5 changed files with 94 additions and 2 deletions

View File

@@ -264,7 +264,8 @@ public class ProcessQueueViewModel : ReactiveObject
}
#endregion
public event EventHandler<ProcessBookViewModel>? ProcessStart;
public event EventHandler<ProcessBookViewModel>? ProcessEnd;
private async Task QueueLoop()
{
try
@@ -288,6 +289,7 @@ public class ProcessQueueViewModel : ReactiveObject
Serilog.Log.Logger.Information("Begin processing queued item: '{item_LibraryBook}'", nextBook.LibraryBook);
SpeedLimit = nextBook.Configuration.DownloadSpeedLimit / 1024m / 1024;
ProcessStart?.Invoke(this, nextBook);
var result = await nextBook.ProcessOneAsync();
Serilog.Log.Logger.Information("Completed processing queued item: '{item_LibraryBook}' with result: {result}", nextBook.LibraryBook, result);
@@ -310,6 +312,7 @@ public class ProcessQueueViewModel : ReactiveObject
MessageBoxIcon.Asterisk);
shownServiceOutageMessage = true;
}
ProcessEnd?.Invoke(this, nextBook);
}
Serilog.Log.Logger.Information("Completed processing queue");