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/01/11 21:04:21 UTC

(hop) branch main updated: environment config name removed when switching folder, fixes #6165 (#6336)

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 c2951d36b5 environment config name removed when switching folder, fixes #6165 (#6336)
c2951d36b5 is described below

commit c2951d36b513ce6b8368f144cc84fcfca41086b2
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Sun Jan 11 22:04:16 2026 +0100

    environment config name removed when switching folder, fixes #6165 (#6336)
---
 .../hop/projects/environment/LifecycleEnvironmentDialog.java      | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/plugins/misc/projects/src/main/java/org/apache/hop/projects/environment/LifecycleEnvironmentDialog.java b/plugins/misc/projects/src/main/java/org/apache/hop/projects/environment/LifecycleEnvironmentDialog.java
index dbd7893974..011751bdb3 100644
--- a/plugins/misc/projects/src/main/java/org/apache/hop/projects/environment/LifecycleEnvironmentDialog.java
+++ b/plugins/misc/projects/src/main/java/org/apache/hop/projects/environment/LifecycleEnvironmentDialog.java
@@ -327,13 +327,19 @@ public class LifecycleEnvironmentDialog extends Dialog {
         if (projectConfig != null) {
           String environmentName = Const.NVL(wName.getText(), projectName);
           filename =
-              projectConfig.getProjectHome() + "/" + ".." + "/" + environmentName + "-config.json";
+              projectConfig.getProjectHome()
+                  + Const.FILE_SEPARATOR
+                  + ".."
+                  + Const.FILE_SEPARATOR
+                  + environmentName
+                  + "-config.json";
         }
       }
       FileObject fileObject = HopVfs.getFileObject(filename);
 
       String configFile =
           BaseDialog.presentFileDialog(
+              true, // save dialog
               shell,
               null,
               variables,