Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Knossos.NET/ViewModels/Templates/Tasks/InstallBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private async Task<bool> InstallVCRedist(bool is86 = false) {
{
Log.Add(Log.LogSeverity.Error, "TaskItemViewModel.InstallBuild()", $"Unsafe dest path in build '{build.id}': {file.dest}");
CancelTaskCommand();
return null;
}
Directory.CreateDirectory(modPath + Path.DirectorySeparatorChar + file.dest);
}
Expand Down Expand Up @@ -359,6 +360,7 @@ private async Task<bool> InstallVCRedist(bool is86 = false) {
{
Log.Add(Log.LogSeverity.Error, "TaskItemViewModel.InstallBuild()", "Error while decompressing the file " + fileFullPath);
CancelTaskCommand();
throw new TaskCanceledException();
}
//sender.ProgressBarCurrent = ++ProgressCurrent;
++ProgressCurrent;
Expand Down
1 change: 1 addition & 0 deletions Knossos.NET/ViewModels/Templates/Tasks/InstallMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ public async Task<bool> InstallMod(Mod mod, CancellationTokenSource cancelSource
{
Log.Add(Log.LogSeverity.Error, "TaskItemViewModel.InstallMod()", "Error while decompressing the file " + fileFullPath);
CancelTaskCommand();
throw new TaskCanceledException();
}
File.Delete(fileFullPath);
++ProgressCurrent;
Expand Down
1 change: 1 addition & 0 deletions Knossos.NET/ViewModels/Templates/Tasks/InstallTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public async Task<bool> InstallTool(Tool tool, Tool? updateFrom, Action<bool> fi
{
Log.Add(Log.LogSeverity.Error, "TaskItemViewModel.InstallTool()", "Error while decompressing the file " + fileFullPath);
CancelTaskCommand();
throw new TaskCanceledException();
}

if (cancellationTokenSource.IsCancellationRequested)
Expand Down