mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-06-25 16:02:36 -04:00
#1836 - Fix misleading "Not enough disk space" warnings when Books and In progress are on different drives
This commit is contained in:
@@ -188,7 +188,7 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
if (toLiberate.Length > 0)
|
||||
{
|
||||
// May no-op when free space is unknown (common on UNC); see DiskSpaceBackupPreflight.
|
||||
if (!await DiskSpaceBackupPreflight.ConfirmBulkBackupAsync(toLiberate.Length, config))
|
||||
if (!await DiskSpaceBackupPreflight.ConfirmBulkBackupAsync(toLiberate.Length, config, backupQueueAlreadyRunning: Running))
|
||||
return false;
|
||||
|
||||
Serilog.Log.Logger.Information("Begin backup of {count} library books", toLiberate.Length);
|
||||
@@ -372,6 +372,10 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
{
|
||||
Serilog.Log.Logger.Error(ex, "An error was encountered while processing queued items");
|
||||
}
|
||||
finally
|
||||
{
|
||||
DiskSpaceBackupPreflight.ResetBulkPreflightForQueueRun();
|
||||
}
|
||||
|
||||
string timeToStr(TimeSpan time)
|
||||
=> time.TotalHours < 1 ? $"{time:mm\\:ss}"
|
||||
|
||||
Reference in New Issue
Block a user