From: Keith Packard Date: Thu, 16 Jun 2016 05:38:32 +0000 (-0700) Subject: altosui: Don't open command window when --graph is provided X-Git-Tag: 1.6.4~1^2~14 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f28db1102685c87b9f4278268f7e91f5df18374a;hp=2a4d741872449b5332f28e018fa3acc53ed7d891 altosui: Don't open command window when --graph is provided When the user explicitly asks to open a graph, don't bring up the command button window too. Signed-off-by: Keith Packard --- diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 74e07463..f50c32e3 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -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;