From 83e90cc276aa8cbc916c5e045bdc2a515a6641c3 Mon Sep 17 00:00:00 2001 From: Konloch Date: Sun, 4 Jul 2021 21:50:41 -0700 Subject: [PATCH] Dev Mode --- .../bytecodeviewer/gui/components/SystemErrConsole.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemErrConsole.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemErrConsole.java index a58e5958..b835f674 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemErrConsole.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemErrConsole.java @@ -18,6 +18,8 @@ package the.bytecode.club.bytecodeviewer.gui.components; * along with this program. If not, see . * ***************************************************************************/ +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * A simple console GUI. * @@ -29,7 +31,9 @@ public class SystemErrConsole extends JFrameConsolePrintStream public SystemErrConsole(String title) { super(title, System.err); - System.setErr(getNewPrintStream()); + + if(!BytecodeViewer.DEV_MODE) + System.setErr(getNewPrintStream()); } private static final long serialVersionUID = -6556940545421437508L;