From 9416c0cfb31e3e677eeb7ffc351f249930dbbacc Mon Sep 17 00:00:00 2001 From: rootwhois <53112648+rootwhois@users.noreply.github.com> Date: Tue, 23 Sep 2025 11:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=80=89=E4=B8=AD=E6=9D=A1=E7=9B=AE=E6=97=B6=20hover?= =?UTF-8?q?=20=E8=83=8C=E6=99=AF=E9=97=AA=E7=83=81=E4=B8=A4=E6=AC=A1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#4517)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #4245 --- HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java | 2 ++ 1 file changed, 2 insertions(+) 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 b54792c3c..dd0c6c896 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java @@ -40,6 +40,7 @@ import javafx.stage.Stage; import org.jackhuang.hmcl.game.GameDumpGenerator; import org.jackhuang.hmcl.game.Log; import org.jackhuang.hmcl.setting.StyleSheets; +import org.jackhuang.hmcl.ui.construct.NoneMultipleSelectionModel; import org.jackhuang.hmcl.ui.construct.SpinnerPane; import org.jackhuang.hmcl.util.Holder; import org.jackhuang.hmcl.util.CircularArrayList; @@ -311,6 +312,7 @@ public final class LogWindow extends Stage { Holder lastCell = new Holder<>(); listView.setCellFactory(x -> new ListCell() { { + x.setSelectionModel(new NoneMultipleSelectionModel<>()); getStyleClass().add("log-window-list-cell"); Region clippedContainer = (Region) listView.lookup(".clipped-container"); if (clippedContainer != null) {