From ec72594386c4bb99c1bc4e1ce21c2b6d03b31a4e Mon Sep 17 00:00:00 2001 From: mashed-potatoes <37037851+mashed-potatoes@users.noreply.github.com> Date: Mon, 29 Jun 2020 12:09:58 +0500 Subject: [PATCH] Print debug message only if print_debug file exists --- PotatoNV-next/Controls/LogBox.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PotatoNV-next/Controls/LogBox.xaml.cs b/PotatoNV-next/Controls/LogBox.xaml.cs index 59f3da3..9c0d305 100644 --- a/PotatoNV-next/Controls/LogBox.xaml.cs +++ b/PotatoNV-next/Controls/LogBox.xaml.cs @@ -1,6 +1,7 @@ using PotatoNV_next.Utils; using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -77,7 +78,7 @@ namespace PotatoNV_next.Controls InitializeComponent(); OnChanged(); #if DEBUG - Log.PrintDebug = true; + Log.PrintDebug = File.Exists("print_debug"); #endif Log.Notify += AppendLine; Log.OnProgress += OnProgress;