mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-25 10:21:11 -04:00
Auto-scroll process queue
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user