Skip to content

Commit f658c21

Browse files
committed
Log to $TEMP and terminate ProgressWindow
1 parent 609a0fd commit f658c21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DsmSuite.Common.Util/Logger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static Logger()
2727
public static void Init(Assembly assembly, bool logInCurrentDirectory)
2828
{
2929
_assembly = assembly;
30-
_logPath = logInCurrentDirectory ? Directory.GetCurrentDirectory() : @"C:\Temp\DsmSuiteLogging\";
30+
_logPath = logInCurrentDirectory ? Directory.GetCurrentDirectory() : System.IO.Path.GetTempPath() + @"DsmSuiteLogging\";
3131

3232
LogLevel = LogLevel.None;
3333
}

DsmSuite.DsmViewer.Model/Persistency/DsmModelFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ private void UpdateProgress(IProgress<ProgressInfo> progress, bool done)
525525
TotalItemCount = totalItemCount,
526526
CurrentItemCount = progressedItemCount,
527527
ItemType = "items",
528-
Done = totalItemCount == progressedItemCount
528+
Done = done
529529
};
530530

531531
progress.Report(progressInfoInfo);

0 commit comments

Comments
 (0)