From ab43d4a6cf96bdd6a346be27861af8302b826c43 Mon Sep 17 00:00:00 2001 From: zkitefly Date: Fri, 23 Jun 2023 19:49:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=20logLines=20=E9=94=AE=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=201000=20(#2261)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java | 2 +- HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java index 27a8dc3f5..a97351ca2 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java @@ -158,7 +158,7 @@ public final class Config implements Cloneable, Observable { private StringProperty launcherFontFamily = new SimpleStringProperty(); @SerializedName("logLines") - private IntegerProperty logLines = new SimpleIntegerProperty(100); + private IntegerProperty logLines = new SimpleIntegerProperty(1000); @SerializedName("titleTransparent") private BooleanProperty titleTransparent = new SimpleBooleanProperty(false); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java index 23bd1a6e1..42acfd20b 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java @@ -177,7 +177,7 @@ public final class LogWindow extends Stage { cboLines.getSelectionModel().select(2); cboLines.getSelectionModel().selectedItemProperty().addListener((a, b, newValue) -> { - config().setLogLines(newValue == null ? 100 : Integer.parseInt(newValue)); + config().setLogLines(newValue == null ? 1000 : Integer.parseInt(newValue)); }); Log4jLevel[] levels = new Log4jLevel[]{Log4jLevel.FATAL, Log4jLevel.ERROR, Log4jLevel.WARN, Log4jLevel.INFO, Log4jLevel.DEBUG};