This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch 2.18.1-patch
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/2.18.1-patch by this push:
new ac56d6fdec Terminal widget does not listen to disabledGuiElements,
fixes #7271 (#7272)
ac56d6fdec is described below
commit ac56d6fdecb654d4fbf9514b435c6a52a718b9e4
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Thu Jun 11 17:30:22 2026 +0200
Terminal widget does not listen to disabledGuiElements, fixes #7271 (#7272)
---
ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
index 88e1038f2b..8cda297211 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
@@ -2046,11 +2046,12 @@ public class HopGui
return;
}
String activePerspectiveId = activePerspective != null ?
activePerspective.getId() : "";
+ List<String> disabledGuiElements = GuiRegistry.getDisabledGuiElements();
// Collect visible descriptors, then add in reverse order so extra buttons
go on top
List<SidebarToolbarItemDescriptor> visible = new ArrayList<>();
for (SidebarToolbarItemDescriptor d : sidebarToolbarDescriptors) {
- if (!d.isAvailable()) {
+ if (!d.isAvailable() || disabledGuiElements.contains(d.getId())) {
continue;
}
boolean show;