mirror of
https://github.com/mashed-potatoes/PotatoNV.git
synced 2024-11-10 01:02:20 +01:00
Print debug message only if print_debug file exists
This commit is contained in:
parent
32c3b83017
commit
ec72594386
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue