wtf updating this fixed a bug

This commit is contained in:
sirjonasxx 2020-04-28 04:28:56 +02:00
parent a80ebeb28d
commit 338a20688d
2 changed files with 6 additions and 4 deletions

View File

@ -147,7 +147,7 @@
<dependency> <dependency>
<groupId>org.fxmisc.richtext</groupId> <groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId> <artifactId>richtextfx</artifactId>
<version>0.10.2</version> <version>0.10.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jsoup</groupId> <groupId>org.jsoup</groupId>

View File

@ -6,6 +6,8 @@ import gearth.protocol.HMessage;
import gearth.protocol.HPacket; import gearth.protocol.HPacket;
import gearth.ui.logger.loggerdisplays.PacketLogger; import gearth.ui.logger.loggerdisplays.PacketLogger;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.CheckMenuItem; import javafx.scene.control.CheckMenuItem;
@ -67,10 +69,10 @@ public class UiLoggerController implements Initializable {
appendLater.clear(); appendLater.clear();
} }
} }
} }
private static String cleanTextContent(String text) private static String cleanTextContent(String text) {
{
// // strips off all non-ASCII characters // // strips off all non-ASCII characters
// text = text.replaceAll("[^\\x00-\\x7F]", ""); // text = text.replaceAll("[^\\x00-\\x7F]", "");
// //
@ -177,7 +179,7 @@ public class UiLoggerController implements Initializable {
area.setStyleSpans(oldLen, styleSpansBuilder.create()); area.setStyleSpans(oldLen, styleSpansBuilder.create());
if (autoScroll) { if (autoScroll) {
area.moveTo(area.getLength()); // area.moveTo(area.getLength());
area.requestFollowCaret(); area.requestFollowCaret();
} }
}); });