From 4a84c07c56bceb734dd6ca5c4c3772c075d0c7b8 Mon Sep 17 00:00:00 2001 From: crschnick Date: Fri, 26 Jul 2024 08:46:16 +0000 Subject: [PATCH] Fix double click setting --- app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java b/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java index ca27717b0..449880493 100644 --- a/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java +++ b/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java @@ -106,7 +106,7 @@ public abstract class StoreEntryComp extends SimpleComp { }); button.addEventFilter(MouseEvent.MOUSE_CLICKED, event -> { if (AppPrefs.get().requireDoubleClickForConnections().get()) { - if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() > 2) { + if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() != 2) { event.consume(); } } else { @@ -117,7 +117,7 @@ public abstract class StoreEntryComp extends SimpleComp { }); button.addEventFilter(MouseEvent.MOUSE_PRESSED, event -> { if (AppPrefs.get().requireDoubleClickForConnections().get()) { - if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() > 2) { + if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() != 2) { event.consume(); } } else {