From b7d07102cc248bb51f2a43cc485aa9efdf24b6b2 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 5 Aug 2022 06:38:59 -0400 Subject: [PATCH] Default only show latest data --- src/main/java/uorocketry/basestation/Main.java | 2 +- src/main/java/uorocketry/basestation/Window.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/uorocketry/basestation/Main.java b/src/main/java/uorocketry/basestation/Main.java index 77d116c..c969205 100644 --- a/src/main/java/uorocketry/basestation/Main.java +++ b/src/main/java/uorocketry/basestation/Main.java @@ -119,7 +119,7 @@ public class Main implements ComponentListener, ChangeListener, ActionListener, boolean ignoreSelections = false; /** If true, it will show the latest data instead of showing a subset of all data */ - boolean onlyShowLatestData = false; + boolean onlyShowLatestData = true; /** If true, clicking on data in a chart will hide it */ public boolean dataDeletionMode = false; diff --git a/src/main/java/uorocketry/basestation/Window.java b/src/main/java/uorocketry/basestation/Window.java index 81632fb..cada71f 100644 --- a/src/main/java/uorocketry/basestation/Window.java +++ b/src/main/java/uorocketry/basestation/Window.java @@ -147,6 +147,7 @@ public Window(Main main, Config config) { chartDataPointsOptions.setLayout(new BoxLayout(chartDataPointsOptions, BoxLayout.Y_AXIS)); onlyShowLatestDataCheckBox = new JCheckBox("Only Show Latest Data"); + onlyShowLatestDataCheckBox.setSelected(true); chartDataPointsOptions.add(onlyShowLatestDataCheckBox); maxDataPoints = new JPanel();