From 0e6579b8c5b6fdfa7ef9975708098f407c81d693 Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Tue, 6 Feb 2018 19:07:57 +0100 Subject: [PATCH] Don't show log assistant on crash marker in debug mode --- VocaluxeLib/Log/CLog.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VocaluxeLib/Log/CLog.cs b/VocaluxeLib/Log/CLog.cs index 20099887..92b9328c 100644 --- a/VocaluxeLib/Log/CLog.cs +++ b/VocaluxeLib/Log/CLog.cs @@ -79,11 +79,13 @@ namespace VocaluxeLib.Log // Delete the old marker File.Delete(_CrashMarkerFilePath); +#if !DEBUG if (_CurrentVersion == versionTag && File.Exists(mainLogFilePath)) { string logContent = File.ReadAllText(mainLogFilePath, Encoding.UTF8); _ShowReporterFunc(crash:true, showContinue:true, vocaluxeVersionTag:versionTag, log:logContent, lastError:"Vocaluxe crashed while the last execution."); } +#endif } // Write new marker