mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Fix ctb and pws
* (Fix) ctb and pws: Renders a bad file after save, this was introduced with cancelled saves feature * (Fix) When cancel a file convertion, it now deletes the target file
This commit is contained in:
@@ -1424,7 +1424,10 @@ namespace UVtools.GUI
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
|
||||
if (File.Exists(dialog.FileName))
|
||||
{
|
||||
File.Delete(dialog.FileName);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -2013,7 +2016,7 @@ namespace UVtools.GUI
|
||||
}
|
||||
|
||||
var oldFile = SlicerFile.FileFullPath;
|
||||
var tempFile = filepath + ".tmp";
|
||||
var tempFile = filepath + FileFormat.TemporaryFileAppend;
|
||||
|
||||
DisableGUI();
|
||||
FrmLoading.SetDescription($"Saving {Path.GetFileName(filepath)}");
|
||||
|
||||
Reference in New Issue
Block a user