WPF Progress

This commit is contained in:
Tiago Conceição
2020-10-09 23:27:26 +01:00
parent ffd2cc1965
commit e5d123c97a
9 changed files with 100 additions and 34 deletions
+7 -4
View File
@@ -4221,12 +4221,14 @@ namespace UVtools.GUI
var task = Task.Factory.StartNew(() =>
{
var backup = new Layer[baseOperation.LayerRangeCount];
/*var backup = new Layer[baseOperation.LayerRangeCount];
uint i = 0;
for (uint layerIndex = baseOperation.LayerIndexStart; layerIndex <= baseOperation.LayerIndexEnd; layerIndex++)
{
backup[i++] = SlicerFile[layerIndex].Clone();
}
}*/
var backup = SlicerFile.LayerManager.Clone();
try
{
@@ -4296,11 +4298,12 @@ namespace UVtools.GUI
}
catch (OperationCanceledException)
{
i = 0;
/*i = 0;
for (uint layerIndex = baseOperation.LayerIndexStart; layerIndex <= baseOperation.LayerIndexEnd; layerIndex++)
{
SlicerFile[layerIndex] = backup[i++];
}
}*/
SlicerFile.LayerManager = backup;
}
catch (Exception ex)
{
+2 -2
View File
@@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.4.0")]
[assembly: AssemblyFileVersion("0.8.4.0")]
[assembly: AssemblyVersion("0.8.4.1")]
[assembly: AssemblyFileVersion("0.8.4.1")]