Merge pull request #700 from pedro2555/fix-write-log-file-option

Prevented log file creation when writeLogFile option is not set
This commit is contained in:
Sean Kaim
2017-09-09 15:01:06 -04:00
committed by GitHub

View File

@@ -45,6 +45,9 @@ namespace mRemoteNG.App
private static string BuildLogFilePath()
{
if (!Settings.Default.WriteLogFile)
return "";
#if !PORTABLE
var logFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Application.ProductName);
#else