altosui: Don't open command window when --graph is provided
authorKeith Packard <keithp@keithp.com>
Thu, 16 Jun 2016 05:38:32 +0000 (22:38 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 16 Jun 2016 05:38:32 +0000 (22:38 -0700)
When the user explicitly asks to open a graph, don't bring up the
command button window too.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosUI.java

index 74e074632b81a263f27b939fee753067e92d28c4..f50c32e3d38127d2e98e307f85dfa6e449bd56ce 100644 (file)
@@ -612,15 +612,13 @@ public class AltosUI extends AltosUIFrame {
                                        File file = new File(args[i]);
                                        switch (process) {
                                        case process_none:
-                                       case process_graph:
                                                if (altosui == null)
                                                        altosui = new AltosUI();
+                                       case process_graph:
                                                if (!process_graph(file))
                                                        ++errors;
                                                break;
                                        case process_replay:
-                                               if (altosui == null)
-                                                       altosui = new AltosUI();
                                                if (!process_replay(file))
                                                        ++errors;
                                                break;