You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2026/06/11 15:30:29 UTC

(hop) branch main updated: Terminal widget does not listen to disabledGuiElements, fixes #7271 (#7272)

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new db55c96000 Terminal widget does not listen to disabledGuiElements, fixes #7271 (#7272)
db55c96000 is described below

commit db55c96000abebb2c909430a95e5d0701556204e
Author: Hans Van Akelyen <ha...@gmail.com>
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;