diff options
| -rw-r--r-- | src/main/java/cuchaz/enigma/Main.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/Main.java b/src/main/java/cuchaz/enigma/Main.java index abae2da5..a89f898b 100644 --- a/src/main/java/cuchaz/enigma/Main.java +++ b/src/main/java/cuchaz/enigma/Main.java | |||
| @@ -21,7 +21,8 @@ import cuchaz.enigma.mapping.ClassEntry; | |||
| 21 | public class Main { | 21 | public class Main { |
| 22 | 22 | ||
| 23 | public static void main(String[] args) throws Exception { | 23 | public static void main(String[] args) throws Exception { |
| 24 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | 24 | if (System.getProperty("enigma.useSystemLookAndFeel", "true").equals("true")) |
| 25 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | ||
| 25 | Gui gui = new Gui(); | 26 | Gui gui = new Gui(); |
| 26 | 27 | ||
| 27 | // parse command-line args | 28 | // parse command-line args |
| @@ -33,7 +34,7 @@ public class Main { | |||
| 33 | } | 34 | } |
| 34 | 35 | ||
| 35 | // DEBUG | 36 | // DEBUG |
| 36 | //gitgui.getController().openDeclaration(new ClassEntry("none/byp")); | 37 | //gui.getController().openDeclaration(new ClassEntry("none/byp")); |
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | private static File getFile(String path) { | 40 | private static File getFile(String path) { |