mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Fix double click setting
This commit is contained in:
parent
bfee4d8edc
commit
4a84c07c56
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue