From c6e8a5cc6b6899a2d74d097e8ef2a6e2d9eaf9b5 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 21 Oct 2021 19:19:58 -0400 Subject: [PATCH] minor usability: reducing "set date" spam --- .../ui/src/main/java/com/rusefi/ui/widgets/AnyCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java_console/ui/src/main/java/com/rusefi/ui/widgets/AnyCommand.java b/java_console/ui/src/main/java/com/rusefi/ui/widgets/AnyCommand.java index 2ffa422cb1..edd7d7b170 100644 --- a/java_console/ui/src/main/java/com/rusefi/ui/widgets/AnyCommand.java +++ b/java_console/ui/src/main/java/com/rusefi/ui/widgets/AnyCommand.java @@ -34,6 +34,7 @@ import java.util.function.Function; public class AnyCommand { private final static ThreadFactory THREAD_FACTORY = new NamedThreadFactory("AnyCommand"); public static final String KEY = "last_value"; + // todo: kill while killing FSIO private static final String DECODE_RPN = "decode_rpn"; private final UIContext uiContext; @@ -58,7 +59,7 @@ public class AnyCommand { content.add(go); uiContext.getCommandQueue().addListener(command -> { - if (listenToCommands && !reentrant && RecentCommands.isBoringCommand(command)) + if (listenToCommands && !reentrant && !RecentCommands.isBoringCommand(command)) text.setText(command); });