diff --git a/mRemoteV1/App/Logger.cs b/mRemoteV1/App/Logger.cs index 3f2f0ace..dfb39892 100644 --- a/mRemoteV1/App/Logger.cs +++ b/mRemoteV1/App/Logger.cs @@ -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