Skip to content

Commit 7cdb16e

Browse files
committed
Merge pull request #581 from JLLeitschuh/fix/clearingLogArea
Fixes clearing the log not reseting the entire log
2 parents 27b5e8f + 064ce05 commit 7cdb16e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/src/main/java/edu/wpi/grip/ui/components/LogTextArea.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class LogTextArea extends TextArea {
1919
static final int MAX_STRING_LENGTH = 200000;
2020
private final BooleanProperty pausedScrollProperty = new SimpleBooleanProperty(false);
2121
@SuppressWarnings("PMD.AvoidStringBufferField")
22-
private final StringBuilder fullLog = new StringBuilder();
22+
private StringBuilder fullLog = new StringBuilder();
2323
private boolean full = false;
2424

2525

@@ -66,4 +66,10 @@ public final BooleanProperty pausedScrollProperty() {
6666
public final void setPausedScroll(boolean value) {
6767
pausedScrollProperty.setValue(value);
6868
}
69+
70+
@Override
71+
public void clear() {
72+
fullLog = new StringBuilder();
73+
full = false;
74+
}
6975
}

0 commit comments

Comments
 (0)