This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 4cdc6727e7fa CAMEL-24372: Exclude pseudo-tabs from Settings Select Tab
options
4cdc6727e7fa is described below
commit 4cdc6727e7fac86f9ba420cbd58e625a29c7eed6
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Aug 11 07:56:51 2026 +0200
CAMEL-24372: Exclude pseudo-tabs from Settings Select Tab options
Filter out pseudo-tabs with negative indices (like Switch Integration)
from the Select Tab setting in the Settings popup.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/dsl/jbang/core/commands/tui/SettingsPopup.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SettingsPopup.java
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SettingsPopup.java
index 29d6592fca7c..b56e8b55a937 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SettingsPopup.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SettingsPopup.java
@@ -138,7 +138,7 @@ class SettingsPopup {
primaryTabNames = new ArrayList<>();
if (tabEntries != null) {
for (TabRegistry.TabEntry entry : tabEntries) {
- if (entry.tabIndex() != TabRegistry.TAB_MORE) {
+ if (entry.tabIndex() >= 0 && entry.tabIndex() !=
TabRegistry.TAB_MORE) {
primaryTabNames.add(entry.name());
}
}