From 338a20688dcac43f79f80e4ed18e8a07c14866c1 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Tue, 28 Apr 2020 04:28:56 +0200 Subject: [PATCH] wtf updating this fixed a bug --- G-Earth/pom.xml | 2 +- .../loggerdisplays/uilogger/UiLoggerController.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/G-Earth/pom.xml b/G-Earth/pom.xml index 863b628..a945e2b 100644 --- a/G-Earth/pom.xml +++ b/G-Earth/pom.xml @@ -147,7 +147,7 @@ org.fxmisc.richtext richtextfx - 0.10.2 + 0.10.5 org.jsoup diff --git a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java index 1d20f7b..7cfe2b3 100644 --- a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java +++ b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java @@ -6,6 +6,8 @@ import gearth.protocol.HMessage; import gearth.protocol.HPacket; import gearth.ui.logger.loggerdisplays.PacketLogger; import javafx.application.Platform; +import javafx.beans.InvalidationListener; +import javafx.beans.Observable; import javafx.event.ActionEvent; import javafx.fxml.Initializable; import javafx.scene.control.CheckMenuItem; @@ -67,10 +69,10 @@ public class UiLoggerController implements Initializable { appendLater.clear(); } } + } - private static String cleanTextContent(String text) - { + private static String cleanTextContent(String text) { // // strips off all non-ASCII characters // text = text.replaceAll("[^\\x00-\\x7F]", ""); // @@ -177,7 +179,7 @@ public class UiLoggerController implements Initializable { area.setStyleSpans(oldLen, styleSpansBuilder.create()); if (autoScroll) { - area.moveTo(area.getLength()); +// area.moveTo(area.getLength()); area.requestFollowCaret(); } });