This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch CAMEL-23514-ascii-diagram-metrics in repository https://gitbox.apache.org/repos/asf/camel.git
commit 170204c25d83fdf13630c8f35c429df0d1e5b581 Author: Claus Ibsen <[email protected]> AuthorDate: Thu May 14 09:38:00 2026 +0200 CAMEL-23514: Fix metrics toggle not taking effect immediately Reset diagramLoading guard before reloading so the toggle is not blocked by an in-progress tick-triggered load that captured the old metrics flag. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java index 8f757e129554..80a2c9174582 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java @@ -404,6 +404,7 @@ public class CamelMonitor extends CamelCommand { if (tab == TAB_ROUTES && showDiagram && ke.isCharIgnoreCase('m')) { diagramMetrics = !diagramMetrics; if (diagramTextMode) { + diagramLoading.set(false); loadDiagramForSelectedRoute(); } return true;
