将配置文件的 logLines 键默认值改为 1000 (#2261)
This commit is contained in:
@@ -158,7 +158,7 @@ public final class Config implements Cloneable, Observable {
|
|||||||
private StringProperty launcherFontFamily = new SimpleStringProperty();
|
private StringProperty launcherFontFamily = new SimpleStringProperty();
|
||||||
|
|
||||||
@SerializedName("logLines")
|
@SerializedName("logLines")
|
||||||
private IntegerProperty logLines = new SimpleIntegerProperty(100);
|
private IntegerProperty logLines = new SimpleIntegerProperty(1000);
|
||||||
|
|
||||||
@SerializedName("titleTransparent")
|
@SerializedName("titleTransparent")
|
||||||
private BooleanProperty titleTransparent = new SimpleBooleanProperty(false);
|
private BooleanProperty titleTransparent = new SimpleBooleanProperty(false);
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ public final class LogWindow extends Stage {
|
|||||||
cboLines.getSelectionModel().select(2);
|
cboLines.getSelectionModel().select(2);
|
||||||
|
|
||||||
cboLines.getSelectionModel().selectedItemProperty().addListener((a, b, newValue) -> {
|
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};
|
Log4jLevel[] levels = new Log4jLevel[]{Log4jLevel.FATAL, Log4jLevel.ERROR, Log4jLevel.WARN, Log4jLevel.INFO, Log4jLevel.DEBUG};
|
||||||
|
|||||||
Reference in New Issue
Block a user