Skip to content

Commit 60a9006

Browse files
committed
* Minor fix
1 parent 61f2f8a commit 60a9006

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

MemPlus/Business/LOG/LogController.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ internal LogController(bool enabled, bool autoClear, int clearInterval, bool sav
132132
SetAutoClear(autoClear);
133133

134134
_startTime = DateTime.Now;
135-
// Set this after the DateTime has been established
136-
SetSaveDirectory(saveDirectory);
135+
136+
if (saveToFile)
137+
{
138+
// Set this after the DateTime has been established
139+
SetSaveDirectory(saveDirectory);
140+
}
137141
/*
138142
* Make sure this is the last LogController method that is called
139143
* because this will only work properly when all other settings (especially the directory)

0 commit comments

Comments
 (0)