Horizon

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 2  →  ?path2? @ 3
/Horizon/Database/SnapshotDatabase.cs
@@ -122,14 +122,14 @@
{
await SetAutoVacuum(_cancellationToken);
}
catch
catch(Exception exception)
{
Log.Error("Unable to set auto vacuum for database.");
Log.Error(exception,"Unable to set auto vacuum for database.");
}
}
catch
catch (Exception exception)
{
Log.Error("Unable to create database;");
Log.Error(exception,"Unable to create database;");
}
}).Wait(_cancellationToken);
}
/Horizon/Snapshots/SnapshotManagerForm.cs
@@ -210,9 +210,9 @@
}
});
 
await Task.Run(() => RetriveFileStream(rows, progress, _cancellationToken), _cancellationToken);
await Task.Run(() => RetrieveFileStream(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -231,7 +231,7 @@
}
}
 
private async Task RetriveFileStream(IReadOnlyList<DataGridViewRow> rows,
private async Task RetrieveFileStream(IReadOnlyList<DataGridViewRow> rows,
IProgress<DataGridViewRowProgress> progress,
CancellationToken cancellationToken)
{
@@ -351,7 +351,7 @@
 
await Task.Run(() => RemoveColorFiles(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -396,7 +396,7 @@
 
await Task.Run(() => ColorFiles(rows, color, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -443,7 +443,7 @@
 
await Task.Run(() => DeleteFiles(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -559,7 +559,7 @@
 
await Task.Run(() => RevertFile(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -892,7 +892,7 @@
 
await Task.Run(() => RelocateFiles(rows, directory, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -967,7 +967,7 @@
 
await Task.Run(() => UpdateNote(rows, e.Note, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -1121,7 +1121,7 @@
 
await Task.Run(() => SaveFilesTo(rows, directory, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -1178,7 +1178,7 @@
await Task.Run(() => SaveDirectoryTo(rows, basePath, dialog.FileName, progress, _cancellationToken),
_cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -1252,7 +1252,7 @@
 
await Task.Run(() => RecomputeHashes(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -1292,7 +1292,7 @@
 
await Task.Run(() => NormalizeDateTime(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";
@@ -1621,7 +1621,7 @@
 
await Task.Run(() => DeleteScreenshots(rows, progress, _cancellationToken), _cancellationToken);
 
if (!_cancellationToken.IsCancellationRequested)
if (_cancellationToken.IsCancellationRequested)
{
toolStripProgressBar1.Value = toolStripProgressBar1.Maximum;
toolStripStatusLabel1.Text = "Done.";