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 82e72162b4 Fixed label, and text are not enabled or disabled 
simultaneously (#5964)
82e72162b4 is described below

commit 82e72162b456dd96c39af63fd6eb37a96eab24ef
Author: lance <[email protected]>
AuthorDate: Fri Nov 14 22:15:09 2025 +0800

    Fixed label, and text are not enabled or disabled simultaneously (#5964)
    
    Signed-off-by: lance <[email protected]>
---
 .../mail/pipeline/transforms/mail/MailDialog.java   | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git 
a/plugins/misc/mail/src/main/java/org/apache/hop/mail/pipeline/transforms/mail/MailDialog.java
 
b/plugins/misc/mail/src/main/java/org/apache/hop/mail/pipeline/transforms/mail/MailDialog.java
index 9e82ec6cf0..4785cc2bd7 100644
--- 
a/plugins/misc/mail/src/main/java/org/apache/hop/mail/pipeline/transforms/mail/MailDialog.java
+++ 
b/plugins/misc/mail/src/main/java/org/apache/hop/mail/pipeline/transforms/mail/MailDialog.java
@@ -195,6 +195,7 @@ public class MailDialog extends BaseTransformDialog {
 
   private Button wIncludeMessageInOutput;
 
+  private Label wlMessageOutputField;
   private TextVar wMessageOutputField;
 
   private Button wCheckServerIdentity;
@@ -1392,14 +1393,14 @@ public class MailDialog extends BaseTransformDialog {
         });
 
     // OutputFieldName textvar
-    Label wlMessageOutputFIeld = new Label(wMessageGroup, SWT.RIGHT);
-    wlMessageOutputFIeld.setText(BaseMessages.getString(PKG, 
"Mail.IncldueMessageField.Label"));
-    PropsUi.setLook(wlMessageOutputFIeld);
-    FormData fdlMessageOutputFIeld = new FormData();
-    fdlMessageOutputFIeld.left = new FormAttachment(0, 0);
-    fdlMessageOutputFIeld.top = new FormAttachment(wIncludeMessageInOutput, 
margin);
-    fdlMessageOutputFIeld.right = new FormAttachment(middle, -margin);
-    wlMessageOutputFIeld.setLayoutData(fdlMessageOutputFIeld);
+    wlMessageOutputField = new Label(wMessageGroup, SWT.RIGHT);
+    wlMessageOutputField.setText(BaseMessages.getString(PKG, 
"Mail.IncldueMessageField.Label"));
+    PropsUi.setLook(wlMessageOutputField);
+    FormData fdlMessageOutputField = new FormData();
+    fdlMessageOutputField.left = new FormAttachment(0, 0);
+    fdlMessageOutputField.top = new FormAttachment(wIncludeMessageInOutput, 
margin);
+    fdlMessageOutputField.right = new FormAttachment(middle, -margin);
+    wlMessageOutputField.setLayoutData(fdlMessageOutputField);
 
     wMessageOutputField = new TextVar(variables, wMessageGroup, SWT.SINGLE | 
SWT.LEFT | SWT.BORDER);
     PropsUi.setLook(wMessageOutputField);
@@ -1408,7 +1409,7 @@ public class MailDialog extends BaseTransformDialog {
     wMessageOutputField.addModifyListener(lsMod);
     FormData fdMessageOutputField = new FormData();
     fdMessageOutputField.left = new FormAttachment(middle, 0);
-    fdMessageOutputField.top = new FormAttachment(wlMessageOutputFIeld, 0, 
SWT.CENTER);
+    fdMessageOutputField.top = new FormAttachment(wlMessageOutputField, 0, 
SWT.CENTER);
     fdMessageOutputField.right = new FormAttachment(100, 0);
     wMessageOutputField.setLayoutData(fdMessageOutputField);
 
@@ -2468,6 +2469,7 @@ public class MailDialog extends BaseTransformDialog {
     wlSecureConnectionType.setEnabled(wUseSecAuth.getSelection());
     wTrustedHosts.setEnabled(wUseSecAuth.getSelection());
     wCheckServerIdentity.setEnabled(wUseSecAuth.getSelection());
+    wlCheckServerIdentity.setEnabled(wUseSecAuth.getSelection());
   }
 
   private void setEncodings() {
@@ -2814,5 +2816,6 @@ public class MailDialog extends BaseTransformDialog {
 
   private void setOutputMessage() {
     wMessageOutputField.setEnabled(wIncludeMessageInOutput.getSelection());
+    wlMessageOutputField.setEnabled(wIncludeMessageInOutput.getSelection());
   }
 }

Reply via email to